You can show total count in side the datatable
$('#my_table').DataTable({ "language": { "info": "show _PAGE_ page total pages _PAGES_ total record _TOTAL_ ", paging: true, });
variable _TOTAL_ is the total rows of table.
_TOTAL_