Fix maxPage calculation

Wrong maxPage is calculated if `len(targets)` is divisible by `perPage`.
Merge pull request #5 from syohex/fix-page-calculation

Fix maxPage calculation