This is a small project that teaches you how to implement a simple checkpoint system and lap system. The checkpoint system is used to prevent cheating (i.e. backing up and driving over the finish line to increase lap count.) The player vehicle must pass through a series of checkpoints (which you determine), before the lap counter will increment.
Checkpoint and Lap System for Unity