Remove unsued pageCount var.