added word count to mapper