title: Count list with parameters?
body: <p>I have two class lists teams, and matches </p>
  
  <p>In my teams class I have a int id and string name and on the matches class I have int team1Id and 
  team2Id, I want to know if there's a way to count on matches list how many matches a team participate.. </p>
  
  <p>Like </p>
  
  <pre><code>if(teamlist.id == matcheslist.team1 || teamlist.id == matcheslist.team2) count++;
  </code></pre>
  
  <p>Sorry if I didn't explain very well, english isn't my first language.</p>
  
  <p>EDIT1:</p>
  
  <p>Here the lists, 
          public List teams= new List();
          public List matches = new List();
  Team and Match are my classes, with basic information, id and name for Team and id, team1 and team2 for Match, I tried to use find but it only return one result</p>