count requests to determine when the page is fully loaded