instruction: give me the number of patients whose year of birth is less than 1850 and item id is 50951?
response: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "1850" AND lab.itemid = "50951"