count rows in datatable columns after search code example Example: datatable count number of rows var table = $('#example').DataTable(); table.rows().count();