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

### Instruction:
What was the number of dances for the competition finish of 3?

### Inputs:
table_name: table, columns: ['Rank by average', 'Competition finish', 'Couple', 'Total', 'Number of dances', 'Average']

### Response:
SELECT MAX Number of dances FROM table WHERE Competition finish = 3