title: how to search for matching items in an object list?
body: <p>Hi i have a class like this..</p>
  
  <pre><code>  class man    
    {
      public string name { get; set; }
      public string houseid { get; set; }
     }
  </code></pre>
  
  <p>and I have a list of man like this..</p>
  
  <pre><code> List&lt;man&gt; ppl = new List&lt;man&gt;();
  </code></pre>
  
  <p>I want to search if there are more than one person with the same houseid. If there are more than one man with same house id and if the number of people having same house id does not exceed limit 5 I want that house ids and the number of occurrences of that house id? Simply if there are houses with less than 5 members I want that house ids and the number of men under that house id? How to do that? </p>