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

### Instruction:
How many times did tonioli score a 9 when horwood scored a 6?

### Inputs:
table_name: table, columns: ['Week #', 'Dance/song', 'Horwood', 'Goodman', 'Dixon', 'Tonioli', 'Total', 'Result']

### Response:
SELECT COUNT Total FROM table WHERE Tonioli = 9 AND Horwood = 6