def num_higher(objects, key1, key2):
    """ Counts the number of times key2 is higher than key1 in rankers. """
    count = 0
    for ranker in range(len(objects[key1])):
        x1 = objects[key1][ranker]
        x2 = objects[key2][ranker]
        if x1 != None and x2 != None and x1 > x2:
            count += 1
    return count