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

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

h = sorted(h, reverse=True)

for i in range(n):

    if h[i] < k:

        break

else:

    print((i+1))

    exit()

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

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

print((len([i for i in a if i >= k])))
n, k = list(map(int, input().split()))
h = list(map(int, input().split()))
h = sorted(h, reverse=True)
for i in range(n):
    if h[i] < k:
        break
else:
    print((i + 1))
    exit()
print(i)

n, k = list(map(int, input().split()))
a = list(map(int, input().split()))
print((len([i for i in a if i >= k])))

-h = list(map(int, input().split())) -h = sorted(h, reverse=True) -for i in range(n): -    if h[i] < k: -        break -else: -    print((i + 1)) -    exit() -print(i) +a = list(map(int, input().split())) +print((len([i for i in a if i >= k])))