Trunk 4374 Improve performance of getCountOfConcepts