instruction: how many patients with admission type emergency had diagnoses titled gastrointest hemorr nos?
response: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND diagnoses.short_title = "Gastrointest hemorr NOS"