How to count repeated words in a string using Java

join shbcf.ru