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

### Instruction:
What is the rank number with 562-506 goals before season 13?

### Inputs:
table_name: table, columns: ['Rank', 'Club 1', 'Seasons', 'Spells', 'Played 2', 'Drawn', 'Lost', 'Goals', 'Points 3']

### Response:
SELECT COUNT Rank FROM table WHERE Goals = 562-506 AND Seasons < 13