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

How many episodes were titled 'a pig in a poke'?
SELECT COUNT("Written by") FROM table_17547 WHERE "Title" = 'A Pig in a Poke'
SELECT COUNT("Written by") FROM "table_17547" WHERE "Title" = 'A Pig in a Poke'