import sys
sys.setrecursionlimit(10**6)

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

h.sort()

l = -1; r = n # 二分探索時は探索範囲は取り得る値+-1しておく

while l+1 < r:
    c = (l+r)//2
    if h[c] < k:
        l = c
    else:
        r = c

print(n-(l+1)) import sys sys sys.setrecursionlimit(10**6) sys.setrecursionlimit sys setrecursionlimit 10**6 10 6 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 h.sort() h.sort h sort l = -1 l -1 r = n r n while l+1 < r:
    c = (l+r)//2
    if h[c] < k:
        l = c
    else:
        r = c l+1 < r l+1 l 1 r c = (l+r)//2 c (l+r)//2 l+r l r 2 if h[c] < k:
        l = c
    else:
        r = c h[c] < k h[c] h c k l = c l c r = c r c print(n-(l+1)) print n-(l+1) n l+1 l 1 r = n n r l = c c l c = (l+r)//2 (l+r)//2 c l = -1 -1 l r = c c r k = map(int, input().split()) map(int, input().split()) k h = list(map(int, input().split())) list(map(int, input().split())) h n,k = map(int, input().split()) map(int, input().split()) n
import sys
sys.setrecursionlimit(10**6)

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

h.sort()

l = -1; r = n # 二分探索時は探索範囲は取り得る値+-1しておく

while l+1 < r:
    c = (l+r)//2
    if h[c] < k:
        l = c
    else:
        r = c

print(n-(l+1))