from collections import deque



n, k = list(map(int, input().split()))

h = deque(list(input().split()))

ans = 0



while len(h) > 0:

    if int(h.pop()) >= k:

        ans += 1

        

print(ans)
def main():

    N, K = list(map(int, input().split()))

    h = list(int(x) for x in input().split())

    ans = 0



    for i in h:

        if i >= K:

            ans += 1

    

    print(ans)



if __name__ == '__main__':

    main()
from collections import deque

n, k = list(map(int, input().split()))
h = deque(list(input().split()))
ans = 0
while len(h) > 0:
    if int(h.pop()) >= k:
        ans += 1
print(ans)

def main():
    N, K = list(map(int, input().split()))
    h = list(int(x) for x in input().split())
    ans = 0
    for i in h:
        if i >= K:
            ans += 1
    print(ans)


if __name__ == "__main__":
    main()

-from collections import deque +def main(): +    N, K = list(map(int, input().split())) +    h = list(int(x) for x in input().split()) +    ans = 0 +    for i in h: +        if i >= K: +            ans += 1 +    print(ans) -n, k = list(map(int, input().split())) -h = deque(list(input().split())) -ans = 0 -while len(h) > 0: -    if int(h.pop()) >= k: -        ans += 1 -print(ans) + +if __name__ == "__main__": +    main()