Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request.  # noqa: E501
### Context:
CREATE TABLE table_name_45 (laps VARCHAR, rider VARCHAR, grid VARCHAR)
### Question:
What is the total number of laps done by Massimo Roccoli when his grid was smaller than 4?
### Answer:
SELECT COUNT(laps) FROM table_name_45 WHERE rider = "massimo roccoli" AND grid < 4