title: Find Count using lambda Expression
body: <p>I have following classes:</p>
  
  <pre><code>public class Promotion
  {
      public Offers Offers { get; set; }
  }
  public class Offers
  {
     public List&lt;PromotionOffer&gt; Offer { get; set; }
  }
  
  public class PromotionOffer
  {
      public string CategoryName { get; set; }
  }
  </code></pre>
  
  <p>And I have an object of <code>Promotion</code>:</p>
  
  <pre><code>Promotion applicablePromotion = promotion;
  </code></pre>
  
  <p><code>applicablePromotion</code> contains list of  <code>Offer</code> and each offer has <code>CategoryName</code>. I want to find count where <code>CategoryName == Package</code></p>
  
  <p>Something like: </p>
  
  <pre><code>int count = applicablePromotion.Offers.Offer.Find(c =&gt; c.CategoryName == "Package").Count;
  </code></pre>
  
  <p>How can I do this?</p>