Answer
As we can see in this image, both oxygens have 2 lone pairs of electrons.
Work Step by Step
1. Find the amount of electrons that the atom has:
An oxygen with neutral formal charge has 6 electrons on the valence shell.
2. Calculate the difference between this number and the number of bonds.
6 electrons - 2 bonds = 4 free electrons
4 free electrons = 2 lone pairs