Given that $5^{2018}$ has 1411 digits and starts with 3 (the leftmost non-zero digit is 3), for how many integers $1 \leq n \leq 2017$ does $5^n$ start with 1?

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