Count How Many Times A Word Appears In A File Java. The approach that I am taking is when I see a space or a newLine