Count words in texts