  Let $G$ be a finite group. In this paper we present a tool for counting the
number of principle $G$-bundles over a surface. As an application, we express
(non-standard) generating functions for double Hurwitz numbers as integrals
over commutative Frobenius algebras, associated with symmetric groups.
