A new Apple patent reveals technology that can identify exercises and count reps during workouts using a camera.