Question: how to determine how many pi electrons in a molecule?
Answer: Since any one chemical bond (meaning only one line in bond line notation) contains at most two electrons, you can count two π electrons per double bond, and ignore the σ electrons. If you see lone pairs, consider the molecular geometry, and only the π electrons that are in the ring count towards aromaticity.