paginate by the max number of regions (bug 1001613)
Merge pull request #2000 from andymckay/1001613

paginate by the max number of regions