Time for action – counting frequent words by coding in Java