N = int(input())
h_list = input().split()
GetView = 0

for i in range(N):
    count = 1
    print("first:",i)
    for j in range(i):
        print("secound:",j)
        if int(h_list[j]) > int(h_list[i]):
            count = 0
            break;

    if count == 1:
        GetView += 1
        print("third:",i)

print(GetView)