For how many integers $n$ between $1$ and $2021$ does the infinite nested expression $\sqrt{n + \sqrt{n + \sqrt{n + \sqrt{\ldots}}}}$ give a rational number?

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