user: Question: How many grids does ducati have with casey stoner as a rider with fewer than 27 laps?
Columns: ['Rider', 'Manufacturer', 'Laps', 'Time', 'Grid']
Types: ['text', 'text', 'real', 'text', 'real']
Sample row: ['Dani Pedrosa', 'Honda', 27.0, '45:35:121', 2.0]
SQL:

assistant: SELECT COUNT("Grid") FROM "Table" WHERE "Manufacturer" = 'ducati' AND "Rider" = 'casey stoner' AND "Laps" < 27.0;