Fixed word count java example