Determining the population properties of spinning black holes