CREATE TABLE table_23279434_1 (season__number VARCHAR(255), written_by VARCHAR(255), series__number VARCHAR(255))
What seasons  in series 7 did David E. Kelley write ?
    
SQL: SELECT COUNT(season__number) FROM table_23279434_1 WHERE written_by = "David E. Kelley" AND series__number = 7