count pages from 1