Much easier to calculate population numbers in countries with a population register, but those are usually smaller countries like those in the Nordics. I don't think censuses are even held around here...?
A few years back in Austria there was a small scandal as a newly introduced government app to notify about changing residence was used by a member of parliament to declare they moved into the Parliament.