1990 AIME Problem 13

Let T=\left\{9^{k}: k\right. is an integer, \left.0 \leq k \leq 4000\right\}. 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?