CREATE TABLE table_name_82 (total VARCHAR, nation VARCHAR, rank VARCHAR)

Tell me the total number for costa rica and rank more than 8
SELECT COUNT(total) FROM table_name_82 WHERE nation = "costa rica" AND rank > 8
SELECT COUNT("total") FROM "table_name_82" WHERE "costa rica" = "nation" AND "rank" > 8