The following is given as a proof of Euler's Totient Theorem:
$(\mathbb{Z}/n)^\times$ is a group, where Lagrange theorem can be applied. Therefore, if $a$ and $n$ are coprime (which is needed), then $a$ is invertible in the ring $\mathbb{Z}/n$, i.e. : $$a^{\#(\mathbb{Z}/n)^\times}=a^{\varphi(n)}=1.$$
Could someone please explain this? It doesn't seem obvious to me that this holds true. How exactly is ${\#(\mathbb{Z}/n)^\times}$ = $\varphi(n)$?
$\Bbb Z_n^\times$ is precisely the elements which are relatively prime to $n$. For, by Bezout's identity, only those are invertible mod $n$.