While studying primitive roots, I came across the following lemma:
Lemma: Let $p$ and $q$ be primes and suppose that $q^\alpha\mid p-1$, where $\alpha\geq 1$. Then there are precisely $q^\alpha - q^{\alpha -1}$ residue classes $a\pmod p$ of order $q^\alpha$.
However, I also know that given a $d\mid p-1$, $x^d\equiv 1\pmod p$ has $d$ solutions ($p$ is a prime). So, is the lemma in agreement with the previous statement? Because according to the statement shouldn't it be $q^\alpha$ residue classes instead of $q^\alpha - q^{\alpha -1}$ residue classes?
Am I missing something? Where am I going wrong?