replace Word Counter code with ICU implement