Instruct: How many grids does Ducati have with Casey Stoner as a rider with fewer than 27 laps?
Output: SELECT COUNT Grid FROM table WHERE Manufacturer = ducati AND Rider = casey stoner AND Laps < 27