title: increment a count value outside parallel.foreach scope
body: <p>How can I increment an integer value outside the scope of a parallel.foreach loop? What's is the lightest way to synchronize access to objects outside parallel loops?</p>
  
  <pre><code>var count = 0;
  Parallel.ForEach(collection, item =&gt;
  {
    action(item);
    // increment count??
  }
  </code></pre>