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

### Instruction:
What's the total losses that has more than 12 wins and 1017 against?

### Inputs:
table_name: table, columns: ['Benalla DFL', 'Wins', 'Losses', 'Draws', 'Byes', 'Against']

### Response:
SELECT COUNT Losses FROM table WHERE Against = 1017 AND Wins > 12