title: Finding amount of sequence matches per line
body: <p>I'm looking to use GREP or something similiar to find the total matches of a 5 letter sequence (AATTC) in every line of a file, and then print the result in a new file.  For example:</p>
  
  <pre><code>File 1:
  GGGGGAATTCGAATTC
  GGGGGAATTCGGGGGG
  GGGGGAATTCCAATTC
  </code></pre>
  
  <p>Then in another file it prints the matches line by line</p>
  
  <pre><code>File 2:
  2
  1
  2
  </code></pre>