Answer :
Both the number of protons and the number of electrons of an atom determine
its atomic number, as in an atom ( but not in an ion ).
The number of protons in one atom of an element determines the atom's electrons and the number of electrons determines the velency of an element