I made a template to count inhabitants of my country based on mapping, but it can be used by everybody:
add to each residential building the key "ogf:count" with the value "inh_?_" (many values between 1 and 250 inhabitants are available)
use the template {{Count population | area = name of the country}} in the wiki
more can be read in the wiki