N = int(input()) score_K = int(input()) ranking = 1 for i in range(N-1): score = int(input()) if score_K >= score: ranking += 1 print(ranking)