i tried using this:
var rowCount = $('#locationsTable tbody tr').length - 1;
but the one issue is that you can't tell if there is 1 record in the table or 0 records because, when there are 0 records, jquery datatable plugin shows one extra tr row that says "No records matched"
is there a better way to get actual valid row/record count?