Add doc count and doc elements for each category in XML export (optional)