Consider the equation $\cos \frac{x}{4}=\cos x$. Determine the number of distinct solutions in the interval $(0,24 \pi)$. Please provide the number of distinct solutions as an integer.

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