The multiplicative group of the finite field $\mathbb Z/p\mathbb Z$ is cyclic. Note that it has order $p-1$ and that every element of the group satisfies $p(x)=x^{p-1}-1=0$ in the field. Because we are working in a field, a polynomial of degree $n$ has at most $n$ distinct roots. Hence the elements of the multiplicative group are precisely the roots of this equation.
If $q$ is a factor of $p-1$ then the elements of order $q$ satisfy $q(x)=x^q-1=0$ - there can be at most $q$ of them for the same reason, and in fact there are exactly $q$ distinct roots, which can be proved by counting - though a root may have order which is a smaller factor of $q$. If $q$ is prime, then there are $q-1$ elements of precise order $q$ (the element $1$ has order $1$).
The observation that the group is cyclic also allows us to use the fact that a cyclic subgroup has precisely one subgroup of each order which is a factor of the order of the group.
\phi
– Marc van Leeuwen Mar 28 '14 at 13:22