title: Page numbers & total result count in a cursor based pagination
body: <p>Though it may sound like a stupid question, sometimes it is necessary to show page numbers (and also the last page). What is the best way to calculate total row counts and also calculate page numbers (by providing a page query to return specific page) in a cursor based pagination? Also are all these possible in a single query?</p>
  <p>Popular example: Google shows page numbers in google search using a cursor based pagination and also the row count.</p>