Add function countOprhanTerms to the TaxonoyTerms controller