An atom has the same number of electrons, protons and neutrons if the mass number is the atomic number of the element. ( double / triple )
Mass number:
Example: In the case of Sulphur (S) atom, the mass number i.e. 32 is double the atomic number i.e. 16, therefore here the number of protons, electrons, and neutrons are the same.
Atomic number = 16, number of proton= 16, number of electron= 16
Mass number = 32, proton + neutron = 32
16 + neutron = 32
neutron = 32-16 = 16