storm word counter implementation