When the laps driven were under 9 and the time/retired recorded was engine, what's the total number of grid values?
CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
SELECT COUNT("grid") FROM "classification" WHERE "laps"<9 AND "time_retired"='engine';