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

line = 0
bool1 = False
for i in range(N):
  if h[i] >= K:
    line = i
    bool1 = True
    break

if bool1:
  print(N-i)
else:
  print(0) 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 = sorted(h) h sorted(h) sorted h line = 0 line 0 bool1 = False bool1 False for i in range(N):
  if h[i] >= K:
    line = i
    bool1 = True
    break i range(N) range N if h[i] >= K:
    line = i
    bool1 = True
    break h[i] >= K h[i] h i K line = i line i bool1 = True bool1 True break if bool1:
  print(N-i)
else:
  print(0) bool1 print(N-i) print N-i N i print(0) print 0 N,K = map(int,input().split()) map(int,input().split()) N h = sorted(h) sorted(h) h K = map(int,input().split()) map(int,input().split()) K bool1 = True True bool1 h = list(map(int,input().split())) list(map(int,input().split())) h line = 0 0 line line = i i line bool1 = False False bool1
N,K = map(int,input().split())
h = list(map(int,input().split()))
h = sorted(h)

line = 0
bool1 = False
for i in range(N):
  if h[i] >= K:
    line = i
    bool1 = True
    break

if bool1:
  print(N-i)
else:
  print(0)