import sys

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

for i in range(N):
    if not H[i] >= K:
        print(i)
        sys.exit()
        
print(N) import sys sys N,K = map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split K H = sorted(list(map(int,input().split())),reverse = True) H sorted(list(map(int,input().split())),reverse = True) sorted list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split reverse = True reverse True for i in range(N):
    if not H[i] >= K:
        print(i)
        sys.exit()
         i range(N) range N if not H[i] >= K:
        print(i)
        sys.exit()
         not H[i] >= K H[i] >= K H[i] H i K print(i) print i sys.exit() sys.exit sys exit print(N) print N K = map(int,input().split()) map(int,input().split()) K N,K = map(int,input().split()) map(int,input().split()) N H = sorted(list(map(int,input().split())),reverse = True) sorted(list(map(int,input().split())),reverse = True) H
import sys

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

for i in range(N):
    if not H[i] >= K:
        print(i)
        sys.exit()
        
print(N)