This is a numerical-answer question. The correct answer is shown below.
[Solution by Dr. Abubacker] Unpaired electrons: $N_2$ (0), $O_2$ (2), $C_2^-$ (1), $O_2^-$ (1), $O_2^{2-}$ (0), $H_2^+$ (1), $CN^-$ (0), $He_2^+$ (1). Four species have one unpaired electron. Answer: 4.