title: jQuery - How to count the number of hidden or visible rows in a table
body: <p>I have the following jQuery that counts the number of rows in my table. However, some of the table rows might be hidden because of a filter I have in place. How can I change the function below to count the number of visible rows only?</p>
  
  <pre><code>function UpdateCount() {
      var totalRows = $('#listingTable tbody tr').length;
      $("#rowCount").text(totalRows.toString() + " sightings")
  }
  </code></pre>