How many solutions does the equation $\tan{(2x)} = \cos{\left(\frac{x}{2}\right)}$ have on the interval $[0, 2\pi]$? Write your answer as an integer.

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