instruction: count the number of patients whose admission location is phys referral/normal deli and admission year is less than 2187?
response: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "PHYS REFERRAL/NORMAL DELI" AND demographic.admityear < "2187"