This is a numerical-answer question. The correct answer is shown below.
[Solution by Dr. Abubacker] Exceptions: $\text{NO}_2$ (odd electron), $\text{H}_2\text{SO}_4$ (expanded octet), $\text{BF}_3$ (6 e$^-$), $\text{ClO}_2$ (odd electron), $\text{PCl}_5$ (10 e$^-$), $\text{BeF}_2$ (4 e$^-$). The rest obey the octet rule. So $6$. Answer: 6.