Let $\psi(d)$ denote the number of elements of order $d$ in $\mathbb Z_p^*$.
Note that if $a\in\mathbb Z_p^*$ has order $d$, then $a^r$ has order $d$ if and only if $\gcd(r,d)=1$.
Thus are precisely $\phi(d)$ elements of the form of $a^r$ which have order $d$.
It follows that $\phi(d)$ divides $\psi(d)$ for all $d$.
Using (1) we want to show that $\psi(d)$ is either $0$ or equal to $\phi(d)$ for all $d|(p-1)$.
Assume on the contrary that there is some $d$ dividing $p-1$ such that $\psi(d)>\phi(d)$.
Let $a$ be an element of order $d$.
Out of the $d$ elements $a,a^2,\ldots,a^d$, precisely $\phi(d)$ have order $d$.
By our assumption, there is an element $b$ of order $d$ which is not equal to any of the $a^i$'s.
But note that $b$ and each $a^i$ satisfies $x^d\equiv 1\pmod{p}$.
This means that the congruence $x^d\equiv 1\pmod{p}$ has more than $d$ solutions, contrary to (1).
So we have $\psi(d)=0$ or $\phi(d)$.
Now note that $\sum_{d|(p-1)}\psi(d)=p-1$.
This is because each element of $\mathbb Z_p^*$ has order $d$ for some $d|p-1$.
From our earlier inference we also have $\sum_{d|p-1}\psi(d)\leq \sum_{d|p-1}\phi(d)$.
The RHS is equal $p-1$ by (2).
Therefore we cannot have $\psi(d)=0$ for any $d|p-1$ and hence $\psi(p-1)>0$, proving there is an element of order $p-1$ (and hence precisely $\phi(p-1)$ such elements).