Hs = list(map(int, input().split()))

count = 0

hs_len = len(Hs)
for i, H in enumerate(Hs):
    flag = True
    if i == 0:
        pass
    else:
        for j in range(i, 0, -1):
            if Hs[j-1] > H:
                flag = False
                break
    if flag:
        count += 1

print(count)