How many integers of the form $n^{2023-n}$ are perfect squares, where $n$ is a positive integer between $1$ and $2023$ inclusive?

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