How can i tell how many electrons an element has? like Carbon

The atomic number is the number of protons in the nucleus AND the number of electrons. Carbon has an atomic number of 6; therefore, it has six electrons. Oxygen is 8; Ne is 10 etc.