The atomic number of an element is the number of protons in its nucleus. As atoms are neutral because the number of protons (positive charge) equals the number of electrons (negative charge) this means the atomic number also gives the number of electrons in an atom.