Add $maxPerPage to the returned pager of a Query.