SCHEMA:
CREATE TABLE table_name_25 (total VARCHAR, gold VARCHAR, rank VARCHAR)
USER:
Name the number of total for 3 gold and rank less than 3

QUERY:
SELECT COUNT(total) FROM table_name_25 WHERE gold = 3 AND rank < 3