Below is an instruction that describes a task. Write a response that appropriately completes the request.

### Instruction:
How many wins when points are more than 51, goals against are more than 23 and losses are 5?

### Inputs:
table_name: table, columns: ['Position', 'Club', 'Played', 'Wins', 'Draws', 'Losses', 'Goals for', 'Goals against', 'Points', 'Goal Difference']

### Response:
SELECT COUNT Wins FROM table WHERE Points > 51 AND Goals against > 23 AND Losses = 5