create map of position and word count