I figured out a better way to keep track of when the page will end: each post has a number by it for what number post on the thread it is. This one is #1,384. A new page is made every 20 posts, so just see when that number will reach a multiple of 20 and that is when a new page will start.