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
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many years had a total earnings amount of 2254598? ### Input: CREATE TABLE table_22834834_12 (
    year VARCHAR,
    earnings__$_ VARCHAR
) ### Response: SELECT COUNT(year) FROM table_22834834_12 WHERE earnings__$_ = 2254598