Update countNumberOfWords2.java