fix total pages count

I got the issue with the ```total_pages``` method – it returned too few pages for my query. I figured out that it was using ```meta['total']``` key which in my case had the value 1000 (perhaps a number of bulk fetched rows). But the key ```meta['total_found']``` had the value 6425 which was an actual number of results that my query should return. 
So, I used the ```total_entries``` method for counting total pages number because it uses the ```meta['total_found']``` key.