CREATE TABLE "atp_tour_career_earnings" (
  "year" real,
  "majors" real,
  "atp_wins" real,
  "total_wins" real,
  "earnings" real,
  "money_list_rank" real
);

Question: How many years had a total earnings amount of 2254598?
SQL: SELECT COUNT("year") FROM "atp_tour_career_earnings" WHERE "earnings"=2254598;

Question: What is the latest year that data is available for?
SQL: SELECT MAX("year") FROM "atp_tour_career_earnings";