The atomic number is equal to the number of protons of an element;
The number of protons is equal to the number of electrons if the atom is neutral (so the number of electrons is equal to the atomic number if the atom is neutral);
The number of neutrons we can calculate using the following equation:
A = p + n
Where: A is the mass number; p is the number of protons and n is the number of neutrons.