Find the number of solutions to the equation
\[\tan (5 \pi \cos \theta) = \cot (5 \pi \sin \theta)\]where $\theta \in (0, 2 \pi).$

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