l = input().split()

result = 0

# for j in range(0,2):
#     print(j)


for i in range(len(l)):
    flg = 0

    if i == 0:
        result = 1
    else:
        for j in range(0, i):
            if l[i] < l[j]:
                flg = 1

        if flg == 0:
            result = result + 1

print(result)
