add getPageLenght
Merge pull request #1 from faridlab/master

add getPageLength