Count anagrams.