How many solutions of the equation $\tan x = \tan(\tan x)$ are on the interval $0 \le x \le \tan^{-1}(942)$? (Here $\tan^{-1}$ means the inverse tangent function, sometimes written as $\arctan$.)

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