title: How can we find out the number of times the while loop lasted
body: <pre><code>while((MAP = inputFile.readLine()) != null) {
      System.out.println(MAP);
  }
  </code></pre>
  
  <p>How can we find out the number of iterations performed by the while loop? In this textfile, they can be sometimes 5 lines of data, or 100 lines of data..If they are 5 lines, the while loop probably performed 6 loops. I want that number. </p>
  
  <p>Any suggestions? </p>