improve performance of mapping_counts_for_ontology - NCBO-219