CREATE TABLE table_56285 ("Series #" FLOAT, "Season #" FLOAT, "Title" TEXT, "Directed by" TEXT, "Original air date" TEXT, "Production code" TEXT)

How many episodes did Matthew Penn direct before season 22?
SELECT COUNT("Series #") FROM table_56285 WHERE "Season #" < '22' AND "Directed by" = 'matthew penn'
SELECT COUNT("Series #") FROM "table_56285" WHERE "Directed by" = 'matthew penn' AND "Season #" < '22'