Added query to retrieve perk count per wave