The Atomic number for a neutral atom could be equalized to
Number of protons
Number of electrons
Atomic number(Z) of an atom is the number of protons in the nucleus of the atom. An atom needs to be electrically neutral, so, the number of electrons should be equal to the number of protons and hence equals to its atomic number also.
The number of neutrons is equal to the difference between the mass number of the atom(M) and the atomic number(Z).