Instruct: How many wins for bikes with under 54 points, team yamaha, a 250cc bike, and before 1977?
Output: SELECT COUNT Wins FROM table WHERE Points < 54 AND Team = yamaha AND Class = 250cc AND Year < 1977