title: Count number of items with property
body: <p>I have list <code>List&lt;Custom&gt;</code> where <code>Custom</code> is like</p>
  
  <pre><code>class Custom{
      public int id;
      public String name;
  }
  </code></pre>
  
  <p>How to get number of items which have name "Tom" ? Is there easier way than a for loop ?</p>