def main():

    sea = 1

    n = int(eval(input()))

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

    mountain = h[0]

    for i in range(1, n):

        if mountain <= h[i]:

            sea += 1

            mountain = h[i]

    print(sea)





if __name__ == '__main__':

    main()

def main():

    see_sea = 1

    n = int(eval(input()))

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

    mountain = h[0]

    for i in range(1, n):

        if mountain <= h[i]:

            see_sea += 1

            mountain = h[i]

    print(see_sea)





if __name__ == '__main__':

    main()

def main():
    sea = 1
    n = int(eval(input()))
    h = list(map(int, input().split()))
    mountain = h[0]
    for i in range(1, n):
        if mountain <= h[i]:
            sea += 1
            mountain = h[i]
    print(sea)


if __name__ == "__main__":
    main()

def main():
    see_sea = 1
    n = int(eval(input()))
    h = list(map(int, input().split()))
    mountain = h[0]
    for i in range(1, n):
        if mountain <= h[i]:
            see_sea += 1
            mountain = h[i]
    print(see_sea)


if __name__ == "__main__":
    main()

-    sea = 1 +    see_sea = 1 -            sea += 1 +            see_sea += 1 -    print(sea) +    print(see_sea)