CREATE TABLE "tennent_s_scottish_cup" (
  "date" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real
);

Question: What was the Attendance on 31 January 1987?
SQL: SELECT COUNT("attendance") FROM "tennent_s_scottish_cup" WHERE "date"='31 january 1987';