The number of pi bonds in C₅H₆ (cyclopentadiene, C₅H₆ with two double bonds) is:
In cyclopentadiene ( CH=CH-CH=CH-CH₂ in a ring), there are 2 double bonds, each with 1 pi bond, totaling 2 pi bonds, plus 13 sigma bonds.
Ref: NCERT Class 11 Chemistry > Chapter 4: Chemical Bonding and Molecular Structure > Topic: Valence Bond Theory and Hybridisation - sp sp2 sp3 dsp2