support for caching in mapping stats queries
self.mapping_counts_for_ontology needs both termmapping and mapping grap