count number of lines in a file java