Elliptic curves, modular forms, and sums of Hurwitz class numbers