When traveling behind a motorcycle:

On dry pavement, four seconds of space is generally a safe following distance to allow between you and the vehicle ahead. You should always allow plenty of space when following a motorcycle.
DMV Writen Test