Hey guys, I'm loathe to ask what I'm sure is a pretty dumb question, but my googling skills have failed me. I've got a long string of a limited number of words, and I want to create a transition matrix that tells me how frequently word A goes to word B. What's the easiest way to generate something like this?