How many years had a total earnings amount of 2254598?
CREATE TABLE table_22834834_12 (year VARCHAR, earnings__$_ VARCHAR)
SELECT COUNT(year) FROM table_22834834_12 WHERE earnings__$_ = 2254598
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_22834834_12 (year VARCHAR, earnings__$_ VARCHAR) Question: How many years had a total earnings amount of 2254598? [/INST] SELECT COUNT(year) FROM table_22834834_12 WHERE earnings__$_ = 2254598 </s>