Curvature and Betti Numbers via the Bochner Technique