He has counted them and numbered them precisely. ( Surat al-Maryam, 19:94)
As Allah informs us in “Does He Who created not then know?” ( Surat al-Mulk, 67:14), He knows even the most delicate features of all members of creation. In fact, He holds them all by their forelocks, for He created their colors, shapes, images, and features, and also determined their number. Surely, no person can ever possess this knowledge.
Allah knows the number of planets, stars, and celestial bodies, as well as the number of electrons circling an atom's nucleus, how many leaves exist on trees, and the number of atoms in each leaf. In addition, He knows the exact number of sand grains located on and below Earth's surface, the number of rain drops, and how many fish live in the oceans. Given that He created everything, He also knows the exact number of animal and plant species on Earth, the precise number of people who have lived since the time of Prophet Adam (as), and the number of people who will live until the Day of Judgment.
On the Day Allah raises up all of them together, He will inform them of what they did. Allah has recorded it, while they have forgotten it. Allah is a Witness of all things. ( Surat al-Mujadala, 58:6)