extract_pagination function

Extract Pagination Metadata