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_30 (viewers VARCHAR, rank VARCHAR)
  ### Question:
  What is the total number of Viewers when the rank is #40?
  ### Answer:
  SELECT COUNT(viewers) FROM table_name_30 WHERE rank = "#40"