added pages count by Jeff's request