cache transition count and state-based transition counts
Merge pull request #13 from ianks/cache-transition-count

cache transition count and state-based transition counts