def total_uphills
      return 0 if track_points.length <= 1

      result = 0
      latest_track_point = track_points.first