Add AnnotationRef counters to the xsd-fu templates

See also ticket #9541.