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

### Instruction:
What is the total number of gold medals won among nations that won more than 27 bronze and less than 305 medals total?

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

### Response:
SELECT COUNT Gold FROM table WHERE Bronze > 27 AND Total < 305