text: Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request.  # noqa: E501
  ### Context:
  CREATE TABLE table_name_20 (series__number VARCHAR, season__number VARCHAR, directed_by VARCHAR)
  ### Question:
  How many episodes did Matthew Penn direct before season 22?
  ### Answer:
  SELECT COUNT(series__number) FROM table_name_20 WHERE season__number < 22 AND directed_by = "matthew penn"