Text this: The problem of the number of integer points in families of anisotropically expanding domains, with applications to spectral theory