Below is an instruction that describes a task. Write a response that appropriately completes the request.

### Instruction:
What is the total number of laps done by Massimo Roccoli when his grid was smaller than 4?

### Inputs:
table_name: table, columns: ['Rider', 'Bike', 'Laps', 'Time', 'Grid']

### Response:
SELECT COUNT Laps FROM table WHERE Rider = massimo roccoli AND Grid < 4