Below is an instruction that describes a task. Write a response that appropriately completes the request.

### Instruction:
Name the number of total for 3 gold and rank less than 3

### Inputs:
table_name: table, columns: ['Rank', 'Nation', 'Gold', 'Silver', 'Bronze', 'Total']

### Response:
SELECT COUNT Total FROM table WHERE Gold = 3 AND Rank < 3