Valence shell count of order 2