There are five π bonds in a molecule of acetylsalicylic acid.
The formula of acetylsalicylic acid is
Every single bond is a σ bond. Every double bond consists of a σ bond and a π bond.
You want only π bonds, so just count the double bonds. There are five double bonds, so there are FIVE π bonds.