2013 is the first year since the Middle Ages that consists of four consecutive digits. How many such years are there still to come after 2013 and before 10000?

Let's think step by step and output the final answer within \boxed{}.
user