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