cache total word counts per category

https://github.com/cardmagic/classifier/pull/8
Merge pull request #4 from jekyll/cardmagic/classifier/pull/8