title: How can I get a line count for this grep command. Need number only, not all instances
body: <p>I want to get a number count of the instances that contain the words. Don't need for all of the lines to display.</p>
  
  <pre><code>puts File.foreach('filename').grep /word looking for/
  </code></pre>