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

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

cnt = 0

for i in range(len(h)):

    if h[i] >= k:

        cnt += 1

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

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



cnt=0

for h in h_lis:

    if h>=K:cnt+=1

print(cnt)

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

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

-n, k = list(map(int, input().split())) -h = list(map(int, input().split())) +N, K = list(map(int, input().split())) +h_lis = list(map(int, input().split())) -for i in range(len(h)): -    if h[i] >= k: +for h in h_lis: +    if h >= K: