Now counts the number of results returned from the server

Will not let continuing to the next page if there are no results on that page