Return the count of references in this part's XML to the relationship identified by `rId`.
(self, rId: str)
| 241 | return self |
| 242 | |
| 243 | def _rel_ref_count(self, rId: str) -> int: |
| 244 | """Return the count of references in this part's XML to the relationship |
| 245 | identified by `rId`.""" |
| 246 | rIds = cast("list[str]", self._element.xpath("//@r:id")) |
| 247 | return len([_rId for _rId in rIds if _rId == rId]) |