how to count the datatable row count in jquery code example Example: datatable count number of rows var table = $('#example').DataTable(); table.rows().count();