Understanding how electrons are counted for lone pairs vs. bonds especially when understanding resonance?
Count 2 electrons per bond and you'll be fine. The partners of a bond usually share two electrons in their mutual orbitals. While you are correct in thinking 2 divided by 2 is 1, thats not how the octet rule works - count them all.

Left w/ dbl bond: 4 lone pair electrons + 4 bond electrons = 8.

Left w/o dbl bond: 6 lone pairs electrons + 2 bond electrons = 8. 

Octet rule satisfied.