Rule XPath: This rule ASSERTS the following, raising an alert if FALSE:number(@count) eq count(key('element-by-name', 'fig')[@id])