instruction: count the number of female patients who had other closed [endoscopic] biopsy of biliary duct or sphincter of oddi.
response: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.gender = "F" AND procedures.long_title = "Other closed [endoscopic] biopsy of biliary duct or sphincter of Oddi"