I believe each race is time based. So the faster you're going, the more laps you can do. If I remember correctly, each lap was around 40ish seconds.
It is a time based race. The above answer is accurate. Obviously, the type of cart (junior, normal, and super) and skill affect lap times and # of laps achieved.
Thanks! Your answer is awaiting moderation.