Let $n$ be a positive integer, and let $G$ denote a given fixed subgroup of the full permutation group $\Sigma_n$. Consider $n$ variables $z_1,\cdots,z_n$, then $\Sigma_n$ acts naturally on these $n$ variables, and so, by restriction, so does $G$. Assume also given a group homomorphism $\rho: G \to U(1)$. Let $V$ denote the space of all complex $n$-ary forms of degree $d$, where $d$ is some given positive integer. Then $G$ acts naturally on $V$. We define an element $f \in V$ to be a $\rho$-invariant if the following holds:
$g.f = \rho(g).f$ for all $g \in G$.
Given the above, is there some formula that gives the dimension of the subspace of $V$ consisting of all $\rho$-invariants?