CREATE TABLE table_name_59 (grid VARCHAR, rider VARCHAR, laps VARCHAR)

What is the total grid number when Fonsi Nieto had more than 22 laps?
SELECT COUNT(grid) FROM table_name_59 WHERE rider = "fonsi nieto" AND laps > 22
SELECT COUNT("grid") FROM "table_name_59" WHERE "fonsi nieto" = "rider" AND "laps" > 22