Let $T = \{9^k : k ~ \mbox{is an integer}, 0 \le k \le 4000\}$. Given that $9^{4000}$ has 3817 digits and that its first (leftmost) digit is 9, how many elements of $T$ have 9 as their leftmost digit?
Going from $9^{k-1}$ to $9^k$, the number of digits increases by $1$ unless $9^k$ starts with $9$ (multiplying by $9$ adds a digit unless the leading part is large).
From $9^0$ ($1$ digit) to $9^{4000}$ ($3817$ digits) the digit count rises $3816$ times in $4000$ steps.
So $4000-3816=184$ powers start with $9$. The answer is $\boxed{184}$.
Let $T = \{9^k : k ~ \mbox{is an integer}, 0 \le k \le 3519\}$. Given that $9^{3519}$ has 3358 digits and that its first (leftmost) digit is 9, how many elements of $T$ have 9 as their leftmost digit?