add wordcount struct and implementation