title: Counting the number of 10-digit numbers in a file
body: <p>I need to count the total number of instances in which a 10-digit number appears within a file. All of the numbers have leading zeros, e.g.:</p>
  
  <pre><code>This is some text. 0000000001
  </code></pre>
  
  <p>Returns:</p>
  
  <pre><code>1
  </code></pre>
  
  <p>If the same number appears more than once, it is counted again, e.g.:</p>
  
  <pre><code>0000000001 This is some text.
  0000000010 This is some more text.
  0000000001 This is some other text.
  </code></pre>
  
  <p>Returns:</p>
  
  <pre><code>3
  </code></pre>
  
  <p>Sometimes there are no spaces between the numbers, but each continuous string of 10-digits should be counted:</p>
  
  <pre><code>00000000010000000010000000000100000000010000000001
  </code></pre>
  
  <p>Returns:</p>
  
  <pre><code>5
  </code></pre>
  
  <p>How can I determine the total number of 10-digit numbers appearing in a file?</p>