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