First pass at counting dictionary substrings for issue #1.  Performance is probably going to need some focus.