Adding helper functions for creating your own pager, including
total pages, total items, and offset calculations for next and previous