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

### Instruction:
Can you tell me the total number of Rank that has the Area (km 2) smaller than 2,040, and the Population smaller than 1,234,596?

### Inputs:
table_name: table, columns: ['Rank', 'Country/Region', 'Population', 'Area (km 2 )', 'Density (Pop. per km 2 )']

### Response:
SELECT COUNT Rank FROM table WHERE Area (km 2 ) < 2,040 AND Population < 1,234,596