removed pagecountercode

the pagecounter code is not needed.