use NumPages from search

forgot to remove hard coded value of pages for loop iterations - in final version, I want to retrieve every page of results