There are 14 electrons in nitrogen. The molecular orbital configuration of molecule will be:
(σ1s)2,(σ∗1s)2,(σ2s)2,(σ∗2s)2,[(π2px)2=(π2py)2],(σ2px)2,[(π∗2px)0=(π∗2py)0],(σ∗2pz)0
Thus there are 5 bonding electron pairs and 2 non-bonding electron pairs