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