Api change(RiMarkov): numTokens() to size()