def slove():

    import sys

    input = sys.stdin.readline

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

    h = list(map(int, input().rstrip('\n').split()))

    cnt = 0

    for i in range(n):

        cnt += 1 if h[i] >= k else 0

    print(cnt)





if __name__ == '__main__':

    slove()

def slove():

    import sys

    input = sys.stdin.readline

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

    h = list(map(int, input().rstrip('\n').split()))

    cnt = 0

    for i in range(n):

        if h[i] >= k:

            cnt += 1

    print(cnt)





if __name__ == '__main__':

    slove()

def slove():
    import sys

    input = sys.stdin.readline
    n, k = list(map(int, input().rstrip("\n").split()))
    h = list(map(int, input().rstrip("\n").split()))
    cnt = 0
    for i in range(n):
        cnt += 1 if h[i] >= k else 0
    print(cnt)


if __name__ == "__main__":
    slove()

def slove():
    import sys

    input = sys.stdin.readline
    n, k = list(map(int, input().rstrip("\n").split()))
    h = list(map(int, input().rstrip("\n").split()))
    cnt = 0
    for i in range(n):
        if h[i] >= k:
            cnt += 1
    print(cnt)


if __name__ == "__main__":
    slove()

-        cnt += 1 if h[i] >= k else 0 +        if h[i] >= k: +            cnt += 1