N,K = map(int,input().split())
H = list(map(int,input().split()))
H.sort(reverse=True)

cnt = 0
for h in H:
  if h >= K:
    cnt += 1
  else:
    break
print(cnt) 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(reverse=True) H.sort H sort reverse=True reverse True cnt = 0 cnt 0 for h in H:
  if h >= K:
    cnt += 1
  else:
    break h H if h >= K:
    cnt += 1
  else:
    break h >= K h K cnt += 1 cnt 1 break print(cnt) print cnt cnt = 0 0 cnt N,K = map(int,input().split()) map(int,input().split()) N H = list(map(int,input().split())) list(map(int,input().split())) H cnt += 1 1 cnt K = map(int,input().split()) map(int,input().split()) K
N,K = map(int,input().split())
H = list(map(int,input().split()))
H.sort(reverse=True)

cnt = 0
for h in H:
  if h >= K:
    cnt += 1
  else:
    break
print(cnt)
