How can I determine how many laps are in an event?