text: 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_59 (grid VARCHAR, rider VARCHAR, laps VARCHAR)
  ### Question:
  What is the total grid number when Fonsi Nieto had more than 22 laps?
  ### Answer:
  SELECT COUNT(grid) FROM table_name_59 WHERE rider = "fonsi nieto" AND laps > 22