How many integers $n$ are there such that $3 \leq n \leq 10$ and $121_n$ (the number written as $121$ in base $n$) is a perfect square?

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