The electron pair on the right is meant to be outward pointing in the plane of the atoms, not part of the pi system. If you had the electrons in the pi system, then the carbon woukdwould be attached to a hydrogen atom and would have a negative formal charge; we would write this as $\ominus$ rather than as the electron pair.
So there are only eight conjugated pi electrons, and you can work from there.