When following another vehicle as a beginning rider, you should:

A following distance of at least four seconds is recommended for beginning riders. Increase your following distance any time conditions are less than perfect.
DMV Writen Test