The presence of positive charge on the nucleus is due to the protons in the nucleus. As established earlier, the charge on the proton is equal but opposite to that of electron.
The number of protons present in the nucleus is equal to atomic number (Z ). For example, the number of protons in the hydrogen nucleus is 1, in sodium atom it is 11, therefore their atomic numbers are 1 and 11 respectively.
In order to keep the electrical neutrality, the number of electrons in an atom is equal to the number of protons (atomic number, Z ). For example, number of electrons in hydrogen atom and sodium atom are 1 and 11 respectively.
Atomic number (Z) = number of protons in the nucleus of an atom= number of electrons in a nuetral atom
While the positive charge of the nucleus is due to protons, the mass of the nucleus, due to protons and neutrons. As discussed earlier protons and neutrons present in the nucleus are collectively known as nucleons.
The total number of nucleons is termed as mass number (A) of the atom.
mass number (A) = number of protons (Z) + number of neutrons (n)