correct the code to get page count from website