fixing page counter
Merge pull request #47 from novikam/master

fixing page counter