Atomic number is the number of
protons
Atomic number is the number of protons in an atom. The number of electrons is only equal to the atomic number in an uncharged atom. In a charged atom, this value changes!
Hence, the only valid answer would be protons here.