Based off AnagramFinder but only counts and is more efficient