Valence Electrons in Compounds