instruction: count the number of patients whose admission type is emergency and diagnoses long title is transient neonatal thrombocytopenia?
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.long_title = "Transient neonatal thrombocytopenia"