The authors develop a degree theory for compact immersed hypersurfaces of prescribed $K$-curvature immersed in a compact, orientable Riemannian manifold, where $K$ is any elliptic curvature function. They apply this theory to count the (algebraic) number of immersed hyperspheres in various cases.