urlencoding the search term... funnily enough the whole query is not urlencoded
returning the pages count to callback