Beyond counting people, the colonial census made Indian society measurable, while embedding the biases and power of its categories.