The Trace Formula and the Distribution of Eigenvalues of Schrödinger Operators on Manifolds all of whose Geodesics are Closed