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

### Instruction:
What was the total attendance at games when Detroit was the visiting team and the record was 36–13–5?

### Inputs:
table_name: table, columns: ['Date', 'Visitor', 'Score', 'Home', 'Decision', 'Attendance', 'Record']

### Response:
SELECT COUNT Attendance FROM table WHERE Visitor = detroit AND Record = 36–13–5