This is a numerical-answer question. The correct answer is shown below.
[Solution by Dr. Abubacker] Zero dipole moment: $CH_4$ (tetrahedral), $BF_3$ (trigonal planar) and $CO_2$ (linear). $H_2O$, $HF$, $NH_3$ and $SO_2$ are polar. Total 3. Answer: 3.