Lemma (Burnside, orbits and fixed points)

Let $G$ be a finite group acting on a finite set $X$. Then $$ \begin{align*} \frac{1}{\# G}\sum_{g\in G} \# X^g = \#G\backslash X. \end{align*} $$ where $X^g = \sb{x\in X}{gx = x}$ is the set of fixed points of $g$ and $G\backslash X = \sb{Gx}{x\in X}$ is the set of the orbits.

Proof