"Head of the Central Authority for Public Mobilization and Statistics , Brigidaire General Abu Bakr al Gendi announced that Egypt is one of the first world countries to know census. This is ensured by papyrus manuscripts , ancient monuments in Pharaonic temples, marking that the first census in Egypt was carried out in 3340 BC and in 3050 BC. A census also took place in the era of Hesham Abdel Malek ben Marwan in the year 600 AD including the number of population , their ages and residences. In modern ages, another census was made in 1800AD under the auspices of the French campaign."
This is the entire piece on the State Information Service website