Free, open-source online mathematics for students, teachers and workers

The number of distinct orbits is

$$\dfrac{1}{|G|}\sum_{g\in G}|X^g|$$

in other words, the average number of points left fixed by an element of $G$