Walk along the periodic table from the top left and count: hydrogen 1, helium 2, lithium 3, beryllium 4, and on to oganesson at 118. Each step adds exactly one proton. That count is the atomic number, Z. Because no two elements share a proton count, Z is a perfect label: tell a chemist "Z=29" and they know you mean copper.
In a neutral atom the electrons equal the protons, so Z also gives the electron count, and through that, how the electrons are arranged and how the element behaves. That is why a table ordered by Z ends up with similar elements in the same column. In isotope notation ZAX, Z is the lower number. It is often left off, because the symbol already fixes it: Cl always means Z=17.
The atomic number is not the atomic mass. A carbon tile shows both 6 and 12.011. The 6 is Z: a whole number, the same for every carbon atom in the universe. The 12.011 is an average mass in u, a decimal because natural carbon is a mixture of isotopes. On any tile, the atomic number is the whole number, and it is the smaller of the two.
Think of it like this. On one long street, every house has its own number, the houses run in order with no gaps from 1 to 118, and the number alone tells you where to find one; atomic numbers label the elements the same way. The analogy stops at the layout: the periodic table wraps the street into rows so that similar houses line up in columns.
Core idea. One whole number, the proton count Z, identifies an element completely, fixes its place on the periodic table, and in a neutral atom equals the number of electrons.