This is a numerical-answer question. The correct answer is shown below.
[Solution by Dr. Abubacker] $sp^2$ central atoms: $\text{SO}_2$, $\text{C}_2\text{H}_4$, $\text{BCl}_3$, HCHO, $\text{C}_6\text{H}_6$, $\text{BF}_3$ = 6. ($\text{NH}_3$, $\text{SiO}_2$ and $\text{C}_2\text{H}_4\text{Cl}_2$ are $sp^3$; $\text{BeCl}_2$ and $\text{C}_2\text{H}_2$ are $sp$.) Answer: 6.