Below is the list of tables from the database along with their columns and datatype. Need to generate an accurate SQL query for the question.
Only use the columns present in the respective table. Only use the columns which are required to generate the SQL query. Only use table joins if required and not otherwise.

### Tables ###
TABLE: 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 ?

### Accurate SQL ###

SELECT COUNT(season__number) FROM table_23279434_1 WHERE written_by = "David E. Kelley" AND series__number = 7