add appear counter to count word
eidt init and fix syntax error of appearcounter

add init of appearcounter's unit test case, fix syntax error of
appearcounter in get_count_result method