CREATE TABLE table_5504 ("Week" FLOAT, "Date" TEXT, "Opponent" TEXT, "Result" TEXT, "Attendance" FLOAT)

What was the total attendance with a result of W 31-21 before week 9?
SELECT COUNT("Attendance") FROM table_5504 WHERE "Result" = 'w 31-21' AND "Week" < '9'
SELECT COUNT("Attendance") FROM "table_5504" WHERE "Result" = 'w 31-21' AND "Week" < '9'