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

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

c = 0



for i in range(n):

    if h[i] < k:

        c = c + 1

    else:

        print((n - c))

        exit()

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

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

c = 0



for i in range(n):

    if h[i] < k:

        c = c + 1

print((n - c))
n, k = list(map(int, input().split()))
h = sorted(list(map(int, input().split())))
c = 0
for i in range(n):
    if h[i] < k:
        c = c + 1
    else:
        print((n - c))
        exit()
print((n - c))

n, k = list(map(int, input().split()))
h = list(map(int, input().split()))
c = 0
for i in range(n):
    if h[i] < k:
        c = c + 1
print((n - c))

-h = sorted(list(map(int, input().split()))) +h = list(map(int, input().split())) -    else: -        print((n - c)) -        exit()