This is one way to motivate the following definition. Let $G$$X$ be a groupoid all of whose objects have a finite automorphism group which is tame in the sense that the sum
$$\sum_{x \in \pi_0(G)} \frac{1}{|\text{Aut}(x)|}$$$$\sum_{x \in \pi_0(X)} \frac{1}{|\text{Aut}(x)|}$$
converges (where $\pi_0(G)$$\pi_0(X)$ is the set of isomorphism classes of objects of $X$). The above sum is called the groupoid cardinality of $G$$X$, and it induces a natural probability measure on $\pi_0(G)$$\pi_0(X)$ where an isomorphism class $x$ occurs with probability inversely proportional to $\text{Aut}(x)$.
Example. Let $X$ be a finite set on which a finite group $G$ acts. Form the action groupoid, whose objects are the elements of $X$ and which has a morphism $s_1 \to s_2$ labeled by $g \in G$ whenever $gs_1 = s_2$. Then the groupoid cardinality of the action groupoid is
$$\sum_{x \in \pi_0(X)} \frac{1}{|\text{Stab}(x)|} = \frac{|S|}{|G|}$$
and the induced probability measure on $\pi_0(X)$ is the one we considered above.
One way to think about groupoid cardinality is that it is analogous to the Euler characteristic. The basic intuition is that we expect $\chi(X/G) = \frac{\chi(X)}{|G|}$ for a suitably nice group action of a finite group $G$ on a space $X$, and the one-object groupoid associated to a group $G$ can be thought of as a model of the classifying space $BG = EG/G$, where $EG$ is contractible and so in particular $\chi(EG) = 1$. For further discussion of the naturality of groupoid cardinality see this blog post.
Example. Let $X$ be a finite set on which a finite group $G$ acts. Form the action groupoid, whose objects are the elements of $X$ and which has a morphism $s_1 \to s_2$ labeled by $g \in G$ whenever $gs_1 = s_2$. Then the groupoid cardinality of the action groupoid is
$$\sum_{x \in \pi_0(X)} \frac{1}{|\text{Stab}(x)|} = \frac{|S|}{|G|}$$
and the induced probability measure on $\pi_0(X)$ is the one we considered above.
Example. Let $G$ beConsider the groupoid of finite sets and bijections. Its groupoid cardinality is
With respect to the corresponding probability measure, a random finite set $S$ occurs with probability $\frac{1}{e |S|!}$. The distribution of cardinalities youwe get this way is Poisson with mean $1$.