docs: public static int countLines(String filename) throws IOException {
          FileInputStream fis = new FileInputStream(filename);
          try {
              return countLines(new BufferedInputStream(fis));
          } finally {
              fis.close();
          }
      }