n,k=list(map(int,input().split()))

L=list(map(int,input().split()))



L.sort()

for i in range(n):

      if L[i]>=k:

            print((n-i))

            exit()

print((0))
n,k=list(map(int,input().split()))

L=list(map(int,input().split()))

print((sum(x>=k for x in L)))
n, k = list(map(int, input().split()))
L = list(map(int, input().split()))
L.sort()
for i in range(n):
    if L[i] >= k:
        print((n - i))
        exit()
print((0))

n, k = list(map(int, input().split()))
L = list(map(int, input().split()))
print((sum(x >= k for x in L)))

-L.sort() -for i in range(n): -    if L[i] >= k: -        print((n - i)) -        exit() -print((0)) +print((sum(x >= k for x in L)))