Memoise word count