Proof (character of permutation representation)
List $X = \set{x_1, \ldots, x_n}$. In the basis $B = \set{e_{x_1}, \ldots, e_{x_n}}$, the matrix of $g\in G$ is a permutation matrix: $$ \begin{align*} ([ρ(g)]_B)_{ij} = \begin{cases} 1, &\text{if $gx_j = x_i$}, \\ 0, &\text{otherwise}. \end{cases} \end{align*} $$ Therefore $$ \begin{align*} \tr ρ(g) = \#\sb{i}{gx_i = x_i} = \# X^g. \end{align*} $$