N, K = [int(x) for x in input().split()]

H = [int(x) for x in input().split()]



ans = 0

for h in H:

    if h >= K:

        ans += 1

print(ans)



A, K = [int(x) for x in input().split()]

print((sum(int(x) >= K for x in input().split())))



N, K = [int(x) for x in input().split()]
H = [int(x) for x in input().split()]
ans = 0
for h in H:
    if h >= K:
        ans += 1
print(ans)

A, K = [int(x) for x in input().split()]
print((sum(int(x) >= K for x in input().split())))

-N, K = [int(x) for x in input().split()] -H = [int(x) for x in input().split()] -ans = 0 -for h in H: -    if h >= K: -        ans += 1 -print(ans) +A, K = [int(x) for x in input().split()] +print((sum(int(x) >= K for x in input().split())))