Linking to the last post in the thread triggers a COUNT(*) to calculate the last page.
search_form_for