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