Fix the incorrect entries number when filtering

When filtering, the entries (Showing 1 to 10 of 1,000 entries) are not updated with the correct number of records retrieved and obviously the paging display the incorrect number of pages.