Self-power squares

How many integers $n$, between $1$ and $100$ inclusive, have the property that $n^n$ is a square number?

Problem



How many integers $n$, between $1$ and $100$ inclusive, have the property that $n^n$ is a square number?

If you liked this problem, here is an NRICH task which challenges you to use similar mathematical ideas.