Adding countPages