human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Series #, Title, Directed by, Written by, Original air date, Viewers (in millions)
###Question: How many episodes are written by Lew Schneider?
gpt
SELECT COUNT Series # FROM table WHERE Written by = Lew Schneider