Antecedents of censuses from medieval to nation states : How societies and states count.