CREATE TABLE table_name_17 (gold VARCHAR, rank VARCHAR, total VARCHAR)

How many golds have 3 as the rank, with a total greater than 7?
SELECT COUNT(gold) FROM table_name_17 WHERE rank = "3" AND total > 7
SELECT COUNT("gold") FROM "table_name_17" WHERE "3" = "rank" AND "total" > 7