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

### Instruction:
Name the most times contested for montgomeryshire

### Inputs:
table_name: table, columns: ['Borough', 'County', 'Franchise type', 'Members', 'Voters in 1800', 'Times contested', 'Fate in 1832']

### Response:
SELECT MAX Times contested FROM table WHERE County = Montgomeryshire