'Return the number of results for a given search.'

def number_of_results(self, query):

    number_of_results = 0
    while True:
        res = self.search(query, number_of_results, 10)
        number_of_results += len(res)
        if (len(res) != 10):
            break
    return number_of_results
