I am trying to understand this proof: Prove that $\varphi(p^k)=p^k-p^{k-1}$ for prime $p$
At some point it is stated that the number of multiples of p in range $[1,p^k)$ is $p^{k-1}$.
I am struggling to get why. I tried this:
The multiples of p are :
$$p, 2p, .., (p-1)p, p^2, 2p^2, .., (p-1)p^2, .., p^{k-1}, 2p^{k-1}, .., (p-1)p^{k-1}$$
Now I can think in terms of powers of p : Each power $p^i$ contributes $p-1$ mutliples : $$p^i, 2p^i, .., (p-1)p^i$$
And we have $k-1$ distinct powers so $(k-1)\times (p-1)$ multiples of p in total. Of course that's really different from the actual result. I cannot see what I am missing here.