'Count number of fireballs that exist in the level'

def count_number_of_fireballs(self, powerup_group):

    fireball_list = []
    for powerup in powerup_group:
        if (powerup.name == c.FIREBALL):
            fireball_list.append(powerup)
    return len(fireball_list)
