add getVisiblePageCount api
Merge pull request #195 from chrox/master

add getVisiblePageCount api