Expert Answer: Nitrogen valence electrons are 5
Doubling that, we would have a total of 10 valence electrons with two nitrogen atoms.
The octet needs an atom to have 8 total electrons in order to have a full valence shell, therefore it requires to have a triple bond.
The number of is the number of electrons in the outer shell, that the atom uses for. Nitrogen has 5 electrons in its n=2 (outer) shell.
There is a quick way of identifying the number of – it is the same as the Group number (not for d-block, though).
Nitrogen is in Group 5, so it has 5 outer shell electrons.