Question: How many titles had production code 1040?
SQL: SELECT COUNT(title) FROM table_25662434_1 WHERE production_code = 1040