Each atom can share one electron in the forming of a covalent bond between two atoms.
For example, there are four covalent bonds and four pairs of electron bond pairs in methane.
The pair of electrons left without forming covalent bonds in the outermost valence shell is known as lone pair of electrons.
Since the p-orbital is active in the pi bond, this lone pair can’t be in a p orbital.
Instead, it is in the plane of the ring, at 90 degrees to the pi bond. In other words, because it can not overlap with the pi bond, the single carbon pair does not count as a pair of pi electrons.