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

### Instruction:
How many grids does Ducati have with Casey Stoner as a rider with fewer than 27 laps?

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

### Response:
SELECT COUNT Grid FROM table WHERE Manufacturer = ducati AND Rider = casey stoner AND Laps < 27