instruction: how many patients are primairly suffering from pneumonia and were admitted before the year 2151?
response: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "PNEUMONIA" AND demographic.admityear < "2151"