TRUNK 4374: Improve performance of getCountOfConcepts