On a dry road, keep at least 2 seconds behind the vehicle in front, which at 90 km/h is about 50 m.
Pick a fixed point by the road, such as a lamp post. When the car ahead passes it, count calmly: 'one thousand and one, one thousand and two'. If you reach the post before you finish, you are too close.
Those 2 seconds are your time to react if the car in front brakes hard. In rain, fog or on a slippery road your braking distance grows, so leave more room: 3 seconds or more.
The 2-second rule is a rule of thumb. Dutch law gives no fixed number of seconds. It does say you must always be able to stop within the distance you can see to be clear.
Watch out Tailgating can cost you more than a fine. A new driver can get a penalty point for tailgating above 80 km/h, if the police stop you and you are convicted.
Vuistregel 2-secondenregel (geen wetsregel), RVV 1990 art. 19, WVW 1994 art. 5, WVW 1994 art. 5a, Rijksoverheid.nl: Welke strafbare feiten tellen mee voor het beginnersrijbewijs?