datatable save state for entry count