The number of protons in an atom determines its atomic number, which identifies the element. For example, all atoms with one proton are hydrogen atoms, all atoms with two protons are helium atoms, and so on.
The number of electrons in an atom is typically equal to the number of protons, giving the atom a neutral charge. However, when atoms gain or lose electrons, they become electrically charged and are called ions.