lecture: add count pages