import bisect
def roller_coaster(n, k, hli):

    hli.sort()

    lenght = len(hli)

    ans = lenght - bisect.bisect_left(hli, k)

    return ans

def main():
    n, k = map(int, input().split())
    hli = list(map(int, input().split()))
    print(roller_coaster(n, k, hli))

if __name__ == '__main__':
    main() import bisect bisect def roller_coaster(n, k, hli):

    hli.sort()

    lenght = len(hli)

    ans = lenght - bisect.bisect_left(hli, k)

    return ans roller_coaster hli.sort() hli.sort hli sort lenght = len(hli) lenght len(hli) len hli ans = lenght - bisect.bisect_left(hli, k) ans lenght - bisect.bisect_left(hli, k) lenght bisect.bisect_left(hli, k) bisect.bisect_left bisect bisect_left hli k return ans ans n n k k hli hli def main():
    n, k = map(int, input().split())
    hli = list(map(int, input().split()))
    print(roller_coaster(n, k, hli)) main n, k = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split k hli = list(map(int, input().split())) hli list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split print(roller_coaster(n, k, hli)) print roller_coaster(n, k, hli) roller_coaster n k hli if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def main():
    n, k = map(int, input().split())
    hli = list(map(int, input().split()))
    print(roller_coaster(n, k, hli)) def main():
    n, k = map(int, input().split())
    hli = list(map(int, input().split()))
    print(roller_coaster(n, k, hli)) main def roller_coaster(n, k, hli):

    hli.sort()

    lenght = len(hli)

    ans = lenght - bisect.bisect_left(hli, k)

    return ans def roller_coaster(n, k, hli):

    hli.sort()

    lenght = len(hli)

    ans = lenght - bisect.bisect_left(hli, k)

    return ans roller_coaster
import bisect
def roller_coaster(n, k, hli):

    hli.sort()

    lenght = len(hli)

    ans = lenght - bisect.bisect_left(hli, k)

    return ans

def main():
    n, k = map(int, input().split())
    hli = list(map(int, input().split()))
    print(roller_coaster(n, k, hli))

if __name__ == '__main__':
    main()