Question: how do you know how many electrons a element has?
Answer: The easiest way to find the number of protons, neutrons, and electrons for an element is to look at the element's atomic number on the periodic table. That number is equal to the number of protons. The number of protons is equal to the number of electrons, unless there's an ion superscript listed after the element.