1: \begin{abstract}
2: \small
3: Let $\mathfrak{O}$ be a compact discrete valuation ring
4: of characteristic zero.
5: Given a module~$M$ of matrices over $\mathfrak{O}$,
6: we study the generating function encoding the average sizes of the kernels of
7: the elements of $M$ over finite quotients of $\mathfrak{O}$.
8: We prove rationality and establish fundamental properties of these
9: generating functions and determine them explicitly for various natural
10: families of modules~$M$.
11: Using $p$-adic Lie theory, we then show that special cases of these
12: generating functions enumerate orbits and conjugacy classes of suitable
13: linear $p$-groups.
14: \end{abstract}
15: