fix total pages count

total_pages method was using search.meta['total'] which is not the total number of found results. search.meta['total_found'] which is being used by total_entries method is the right value.