count page lines