instruction: provide the number of patients whose diagnosis long title is unspecified gastritis and gastroduodenitis, without mention of hemorrhage with a base drug type.
response: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.long_title = "Unspecified gastritis and gastroduodenitis, without mention of hemorrhage" AND prescriptions.drug_type = "BASE"