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

### Instruction:
Name the total number of ranks for kujalleq with former name of brattahlíð and population less than 47

### Inputs:
table_name: table, columns: ['Rank', 'Population', 'Name', 'Former Name', 'Municipality']

### Response:
SELECT COUNT Rank FROM table WHERE Municipality = kujalleq AND Former Name = brattahlíð AND Population < 47