Added page counter for statistics