Dubai counts its population in real time.

Nine government bodies — residency, transport, electricity, health, municipality, land, education, economy — now feed one live census system, updated continuously rather than every ten years.
That's why the city can tell you its population to the individual person on a given afternoon.
Most countries publish an estimate and wait a decade to correct it.

Cities run on data. This one decided not to run on old data.