CREATE TABLE table_25662434_1 (title VARCHAR, production_code VARCHAR)

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