def split_returner(chardata):
        chardata = str(chardata).split(" ")
        for i in range(0,len(chardata)):
            chardata[i] = int(chardata[i])
        return chardata
higher = input()
ab = split_returner(str(input()))
result = 0
for i in range(len(ab)):
    if ab[i] >= ab[0] and ab[i] >= ab[i-1]:
        for k in range(0,i-1):
            if ab[i] <= ab[k]:
                break       
        result+= 1
    else:
        pass
print(result)