from sys import stdin, setrecursionlimit


def main():
    input = stdin.buffer.readline
    n, k = map(int, input().split())
    h = list(map(int, input().split()))

    ans = 0
    for hi in h:
        if hi >= k:
            ans += 1

    print(ans)


if __name__ == "__main__":
    setrecursionlimit(10000)
    main() from sys import stdin, setrecursionlimit def main():
    input = stdin.buffer.readline
    n, k = map(int, input().split())
    h = list(map(int, input().split()))

    ans = 0
    for hi in h:
        if hi >= k:
            ans += 1

    print(ans) main input = stdin.buffer.readline input stdin.buffer.readline stdin.buffer stdin buffer readline n, k = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split k h = list(map(int, input().split())) h list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split ans = 0 ans 0 for hi in h:
        if hi >= k:
            ans += 1

     hi h if hi >= k:
            ans += 1

     hi >= k hi k ans += 1 ans 1 print(ans) print ans if __name__ == "__main__":
    setrecursionlimit(10000)
    main() __name__ == "__main__" __name__ "__main__" setrecursionlimit(10000) setrecursionlimit 10000 main() main def main():
    input = stdin.buffer.readline
    n, k = map(int, input().split())
    h = list(map(int, input().split()))

    ans = 0
    for hi in h:
        if hi >= k:
            ans += 1

    print(ans) def main():
    input = stdin.buffer.readline
    n, k = map(int, input().split())
    h = list(map(int, input().split()))

    ans = 0
    for hi in h:
        if hi >= k:
            ans += 1

    print(ans) main
from sys import stdin, setrecursionlimit


def main():
    input = stdin.buffer.readline
    n, k = map(int, input().split())
    h = list(map(int, input().split()))

    ans = 0
    for hi in h:
        if hi >= k:
            ans += 1

    print(ans)


if __name__ == "__main__":
    setrecursionlimit(10000)
    main()
