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

What's the sum of total where the rank is over 9 and the gold is less than 1?
SELECT COUNT(total) FROM table_name_58 WHERE rank > 9 AND gold < 1
SELECT COUNT("total") FROM "table_name_58" WHERE "gold" < 1 AND "rank" > 9