Add function to compute total size of Wigner D matrices