CREATE TABLE table_2226817_9 (directed_by VARCHAR, production_code VARCHAR)

How many episodes have the production code 8.04
SELECT COUNT(directed_by) FROM table_2226817_9 WHERE production_code = "8.04"
SELECT COUNT("directed_by") FROM "table_2226817_9" WHERE "8.04" = "production_code"