HW 8 Software Engineering, reading file and counting frequency of words'