How do you find the number of non-valence electrons?

Take the atomic number then subtract the amount of valence electrons.

Example:

Number of non valence (inner) electrons in Sulfur:

16 (atomic number) - 6 (valence electrons) = 10 (valence or inner electrons)