in reply to Counting words
Is it intentional that you don't accommodate overlaps?
In other words, why is "BE" (starting at offset 0) a repeated word, but "EB" (starting at offset 1) not? Just want to make sure that's not an overlooked concern.
Dave