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

for i in range(n):
  if h[i] >= k:
    ans = n-i
    break

print(ans) 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 ans = 0 ans 0 for i in range(n):
  if h[i] >= k:
    ans = n-i
    break i range(n) range n if h[i] >= k:
    ans = n-i
    break h[i] >= k h[i] h i k ans = n-i ans n-i n i break print(ans) print ans n,k = map(int,input().split()) map(int,input().split()) n h = list(map(int,input().split())) list(map(int,input().split())) h ans = n-i n-i ans ans = 0 0 ans k = map(int,input().split()) map(int,input().split()) k
n,k = map(int,input().split())
h = list(map(int,input().split()))
h.sort()
ans = 0

for i in range(n):
  if h[i] >= k:
    ans = n-i
    break

print(ans)