added word count support