N,K=map(int,input().split())
H=[int(h) for h in input().split()]
H=sorted(H)
cnt=0
for i in range(1,len(H)+1):
    if H[-i]>=K:
        cnt+=1
    else:
        print(cnt)
        exit()
print(cnt) N,K=map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split K int(h) for h in input().split() for h in input().split() h input().split() ().split () input split for h in input().split() int(h) int h H=[int(h) for h in input().split()] H [int(h) for h in input().split()] H=sorted(H) H sorted(H) sorted H cnt=0 cnt 0 for i in range(1,len(H)+1):
    if H[-i]>=K:
        cnt+=1
    else:
        print(cnt)
        exit() i range(1,len(H)+1) range 1 len(H)+1 len(H) len H 1 if H[-i]>=K:
        cnt+=1
    else:
        print(cnt)
        exit() H[-i]>=K H[-i] H -i i K cnt+=1 cnt 1 print(cnt) print cnt exit() exit print(cnt) print cnt K=map(int,input().split()) map(int,input().split()) K cnt+=1 1 cnt cnt=0 0 cnt H=[int(h) for h in input().split()] [int(h) for h in input().split()] H N,K=map(int,input().split()) map(int,input().split()) N H=sorted(H) sorted(H) H
N,K=map(int,input().split())
H=[int(h) for h in input().split()]
H=sorted(H)
cnt=0
for i in range(1,len(H)+1):
    if H[-i]>=K:
        cnt+=1
    else:
        print(cnt)
        exit()
print(cnt)
