CREATE TABLE table_51287 ("Driver" TEXT, "Constructor" TEXT, "Laps" FLOAT, "Time/Retired" TEXT, "Grid" FLOAT)

When the laps driven were under 9 and the time/retired recorded was engine, what's the total number of grid values?
SELECT COUNT("Grid") FROM table_51287 WHERE "Laps" < '9' AND "Time/Retired" = 'engine'
SELECT COUNT("Grid") FROM "table_51287" WHERE "Laps" < '9' AND "Time/Retired" = 'engine'