Average Growth of the Spectral Function on a Riemannian Manifold