CREATE TABLE table_name_45 (laps VARCHAR(255), rider VARCHAR(255), grid VARCHAR(255))
What is the total number of laps done by Massimo Roccoli when his grid was smaller than 4?
    
SQL: SELECT COUNT(laps) FROM table_name_45 WHERE rider = "massimo roccoli" AND grid < 4