A census counts the number of people in a given demographic.
This demographic can be a whole country, a town, a club within the town, etc.
Another purpose of a census is to count the amount of people of different groups within a demographic. Usually this is gender, race, etc.