def _rel_ref_count(self, rId):
        rIds = self._element.xpath('//@r:id')
        return len([_rId for _rId in rIds if _rId == rId])
Remove extensions from a workbench.
dataset/ETHPy150Open python-openxml/python-docx/docx/opc/part.py/Part._rel_ref_count--crossover with--dataset/ETHPy150Open nucleic/enaml/enaml/workbench/workbench.py/Workbench._remove_extensions