For each positive integer $k$, let $S(k)$ be the sum of its digits. For example, $S(21) = 3$ and $S(105) = 6$. Let $n$ be the smallest integer for which $S(n) - S(5n) = 2013$. Determine the number of digits in $n$.

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