Table: nhl_game_stats_2005
Columns: date
visitor
score
home
decision
attendance
record

Question: What was the total attendance at games when Detroit was the visiting team and the record was 36–13–5?
SQL: SELECT COUNT("attendance") FROM nhl_game_stats_2005 WHERE "visitor" = 'detroit' AND "record" = '36–13–5'