user: Question: How many episodes were directed by James Quinn?
Columns: ['No. in series', 'Title', 'Directed by', 'Written by', 'Original air date', 'Production code']
Types: ['real', 'text', 'text', 'text', 'text', 'real']
Sample row: [2.0, '"Subterranean Homeboy Blues"', 'E.W. Swackhamer', 'Robert Palm', 'September20,1990', 66205.0]
SQL:

assistant: SELECT COUNT("Written by") FROM "Table" WHERE "Directed by" = 'James Quinn';