Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request.  # noqa: E501
### Context:
CREATE TABLE table_name_18 (laps VARCHAR, rider VARCHAR, grid VARCHAR)
### Question:
Total laps for Shinya Nakano at smaller than 10 grids.
### Answer:
SELECT COUNT(laps) FROM table_name_18 WHERE rider = "shinya nakano" AND grid < 10