Refs issue #22, set pages number when reloadData
Merge pull request #23 from KyleXie/issue-22

Refs issue #22, set pages number when reloadData