I said this a while ago, @beginner
Consider the $p-1$ elements $-\frac{p-1}2, \ldots,-1,1,\ldots,\frac{p-1}2$
Those are all the nonzero elements of the field.
If you square those, you get $\frac{p-1}2$ squares.
Now, every nonzero square is a root of $x^{\frac{p-1}2}=1$ by Fermat, and since we're in a field, this has at most $\frac{p-1}2$ roots.
Thus, there are exactly $\frac{p-1}2$ nonzero squares.