fix for paging, related issue #34

I noticed that there is a small bug related pageCount. 
If you have 5 of 5 records (if pageSize = 5), Paging directive generates wrong information: 1 of 2 pages, but we still should have one page.