Tag: count number of repeated words in a string in java