The neutral atom of calcium will always have the same number of protons and electrons, thus looking at the proton or the atomic number of the calcium atom will tell you about the total number of electrons. It applies to every element of the periodic table.