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_22834834_12 (year VARCHAR, earnings__$_ VARCHAR)
  ### Question:
  How many years had a total earnings amount of 2254598?
  ### Answer:
  SELECT COUNT(year) FROM table_22834834_12 WHERE earnings__$_ = 2254598