Nitrogen has five electrons in its valence shell. The valence shell is the outer shell of an atom, and its electrons are prone to break away from the atom and become free electrons or latch on to another atom.
The shell closest to the nucleus, the K shell, has a capacity for two electrons. The next shell, L, has a capacity for eight, and the third shell, M, holds up to 18.
The atomic number for nitrogen is seven, which means it has seven protons and seven electrons in the atom. Two electrons are in the innermost K shell. The remaining five electrons go in the nitrogen atom's valence shell.