A nitrogen molecule ($N_2$) consists of two nitrogen atoms joined by a triple covalent bond ($N \equiv N$). Each covalent bond involves a pair of electrons, so a triple bond involves 3 pairs, or a total of 6 electrons.