cache transition count and state-based transition counts

Creates a counting cache in the hmm object (this data cannot be scraped when parsing the file). I placed an initializer that runs a loop over all of the transitions, counting them for each `(from,to)` state. It also counts the number of transitions from a `from_state` (basically counting the number of times the state occurs). The loop within transitions has been replaced with a dictionary call.