user: Question: Name the number of episodes that Jim Barnes wrote for 1.82 million viewers
Columns: ['No.', 'Title', 'Directed by', 'Written by', 'Original air date', 'Production code', 'U.S. viewers (million)']
Types: ['real', 'text', 'text', 'text', 'text', 'text', 'text']
Sample row: [1.0, '" Pilot "', 'Danny Cannon', 'Craig Silverstein', 'September9,2010', '276051', '3.57']
SQL:

assistant: SELECT COUNT("No.") FROM "Table" WHERE "Written by" = 'Jim Barnes' AND "U.S. viewers (million)" = '1.82';