title: Live jQuery table row count
body: <p>I have a table that is dynamically changed via jQuery (it can be searched which if the search criteria is met it will remove the non matching rows)</p>
  
  <p>What I would like is a row count which i have got by using:</p>
  
  <pre><code>var rowCount = $("#table tr").length - 1;
  $('a#rowcount').click(function() {
  alert(rowCount);
  });
  </code></pre>
  
  <p>However if I do a search and the <code>&lt;tr&gt;</code>'s go from say 30 to just 4 matching results clicking rowcount will still show 30.</p>
  
  <p>Is there a way to make the row count dynamic?</p>