This is a numerical-answer question. The correct answer is shown below.
[Solution by Dr. Abubacker] Total lone pairs: $H_2O$ ($2$ on O), $N_2$ ($1+1=2$), $CO$ ($1+1=2$), $XeF_4$ ($2+12\text{ electrons}\to2+4\times3=14$), $NH_3$ ($1$), $NO$ ($1+2=3$), $CO_2$ ($4$), $F_2$ ($6$). Exactly two: $H_2O$, $N_2$ and $CO$, so $3$. Answer: 3.