add page counter to compliation