I've been learning about induced representations recently and I've come across something which I'm very confused about;
For any $G$-set $X$, the number of orbits is equal to $(1_G, \chi_{\mathbb{C}[X]})$ where $1_G$ denotes the character of the trivial representation and $\chi_{\mathbb{C}[X]}$ denotes the character of the permutation representation defined below;
$\mathbb{C}[X]$ is the natural permutation representation with basis ${\{e_x : x \in X}\}$ and the action of $g$ being $ge_{x} = e_{gx}$.
I have no idea why this is true. I know that $Ind_{H}^{G} \mathbb{C} \simeq \mathbb{C}[G/H]$ and the explanation I've seen goes like this;
If $X$ is transitive, then $(1_G, \chi_{\mathbb{C}[X]}) = 1$, which can be shown through Frobenius Reciprocity. If $X$ isn't transitive, then $X = \bigcup_{i=1}^{n} X_i$ where the $X_i$ are transitive. Then, $(1_G, \chi_{\mathbb{C}[X]}) = (1_G, \chi_{\mathbb{C}[X_1] \oplus \cdots \oplus \mathbb{C}[X_n]})= (1_G, \chi_{\mathbb{C}[X_1]}) + ... + (1_G, \chi_{\mathbb{C}[X_n]}) = n$.
I mean, I understand every line of the proof and can follow it, but why does the value $(1_G, \chi_{\mathbb{C}[X]})$ give you the number of orbits of a $G$-set? What does this value have to do with orbits of $G$-sets?