title: Count how many "things" are being put in array from input file
body: <p>This is the beginnings of a program that will read the numbers in an input file and put them into an array, and then sort them ascending and print them into an output file.</p>
  
  <p>I am having trouble with the function that records how many numbers there are in the input file (I am trying to do this while putting the numbers in the array).</p>
  
  <p>Here is the code of the function. There are no errors. Whenever I run the program it prints the amount of numbers in the input as 0.</p>
  
  <pre><code>int store (int arg[], int numsize, istream&amp; infile) 
  {
      while (infile &gt;&gt; arg[  //i dont know what to put here//  ]) {
      numsize++;
      }
  return numsize;   
  }
  </code></pre>