[java] Number of lines in a file in Java