CREATE TABLE table_24887 ("No. in series" FLOAT, "No. in season" FLOAT, "Title" TEXT, "Directed by" TEXT, "Written by" TEXT, "Original air date" TEXT, "Production code" TEXT)

How many episodes have the production code 8.04
SELECT COUNT("Directed by") FROM table_24887 WHERE "Production code" = '8.04'
SELECT COUNT("Directed by") FROM "table_24887" WHERE "Production code" = '8.04'