Simple Line, Word, Character Count Program in Java