It depends on the licence that you have bought.
Rookie licence:
The most recent 20 laps will be stored with telemetry.
Pro licence:
Telemetry for 10 most recent, 10 fastest, 10 slowest and 10 average laps per Racetrack will be stored.