[word-count] Rename a method

Signed-off-by: chatgris <jboyer@af83.com>
[word-count] Remove useless code

Signed-off-by: chatgris <jboyer@af83.com>