transform to word count