This is a numerical-answer question. The correct answer is shown below.
[Solution by Dr. Abubacker] In O$_3$ the central O has $1$ lone pair, the terminal O joined by the double bond has $2$ and the terminal O with the single bond has $3$. Total $=1+2+3=6$. Answer: 6.