title: Count lines via bufio
body: <p>I'm utilizing bufio to do a for loop for each line in a text file. I have no idea how to count the amount of lines though.</p>
  
  <pre><code>scanner := bufio.NewScanner(bufio.NewReader(file))
  </code></pre>
  
  <p>The above is what I use to scan my file.</p>