title: Count the items from a IEnumerable<T> without iterating?
body: <pre><code>private IEnumerable&lt;string&gt; Tables
  {
      get
      {
          yield return "Foo";
          yield return "Bar";
      }
  }
  </code></pre>
  
  <p>Let's say I want iterate on those and write something like processing #n of #m. </p>
  
  <p>Is there a way I can find out the value of m without iterating before my main iteration?</p>
  
  <p>I hope I made myself clear.</p>