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

### Instruction:
What's the total enrollment of public schools located in Buffalo, New York that were founded after 1846?

### Inputs:
table_name: table, columns: ['Institution', 'Location', 'Founded', 'Affiliation', 'Enrollment', 'Team Nickname', 'Primary conference']

### Response:
SELECT SUM Enrollment FROM table WHERE Location = buffalo, new york AND Affiliation = public AND Founded > 1846