CREATE TABLE table_25662434_1 (title VARCHAR(255), production_code VARCHAR(255))
How many titles had production code 1040?
    
SQL: SELECT COUNT(title) FROM table_25662434_1 WHERE production_code = 1040