instruction: count the number of patients whose admission type is emergency and year of birth is less than 2071?
response: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "EMERGENCY" AND demographic.dob_year < "2071"