human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Rank, Nation, Gold, Silver, Bronze, Total
###Question: How many golds have 3 as the rank, with a total greater than 7?
gpt
SELECT COUNT Gold FROM table WHERE Rank = 3 AND Total > 7