Getting Number of Laps from GPS using vectors? Data Acquisition System project for an off road racing

Here is a sample of the data I collected from the last race.
Millies, speed, rpm, Lat, Long, Acceleration X, Y, Z

image