title: How do I update a progress bar based on a foreach loop that runs based on a variable array?
body: <p>Example:</p>
  
  <p>At this point in my code, the progress bar is at 70:</p>
  
  <pre><code>pbUpload.Value = 70;
  
  foreach (string file in finalFiles)
  {
      //processes
      //processes
  }
  </code></pre>
  
  <p>finalFiles has a VARIABLE LENGTH. Meaning it does not have a fixed number. So basically I need to figure out the number first, which is easy, but then how do I construct a loop in which it'll update the progress bar from 70 to 100 (100 being the last "each" element)?</p>