What seasons  in series 7 did David E. Kelley write ?
CREATE TABLE table_23279434_1 (season__number VARCHAR, written_by VARCHAR, series__number VARCHAR)
SELECT COUNT(season__number) FROM table_23279434_1 WHERE written_by = "David E. Kelley" AND series__number = 7
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_23279434_1 (season__number VARCHAR, written_by VARCHAR, series__number VARCHAR) Question: What seasons  in series 7 did David E. Kelley write ? [/INST] SELECT COUNT(season__number) FROM table_23279434_1 WHERE written_by = "David E. Kelley" AND series__number = 7 </s>