calculate the number of patients who have been prescribed magnesium sulfate (ob).
select count( distinct admissions.subject_id ) from admissions where admissions.hadm_id in ( select prescriptions.hadm_id from prescriptions where prescriptions.drug = 'magnesium sulfate (ob)' )