Table schema:
CREATE TABLE table_name_18 (laps VARCHAR, rider VARCHAR, grid VARCHAR)

Question: Total laps for Shinya Nakano at smaller than 10 grids.
SQL: SELECT COUNT(laps) FROM table_name_18 WHERE rider = "shinya nakano" AND grid < 10