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

l=0

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

for i in range(n):

    if ll[i]>=k:

        l+=1

print(l)
N, K = list(map(int, input().split()))

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

count = 0

for h in H:

    if h >= K:

        count += 1

print(count)
n, k = list(map(int, input().split()))
l = 0
ll = list(map(int, input().split()))
for i in range(n):
    if ll[i] >= k:
        l += 1
print(l)

N, K = list(map(int, input().split()))
H = list(map(int, input().split()))
count = 0
for h in H:
    if h >= K:
        count += 1
print(count)

-n, k = list(map(int, input().split())) -l = 0 -ll = list(map(int, input().split())) -for i in range(n): -    if ll[i] >= k: -        l += 1 -print(l) +N, K = list(map(int, input().split())) +H = list(map(int, input().split())) +count = 0 +for h in H: +    if h >= K: +        count += 1 +print(count)