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

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

ans = 0



for i in h:

  if i >= K:

    ans = ans + 1



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

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

ans = 0

for i in A:

  if i>=K:

    ans = ans + 1

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

N, K = list(map(int, input().split()))
A = list(map(int, input().split()))
ans = 0
for i in A:
    if i >= K:
        ans = ans + 1
print(ans)

-h = list(map(int, input().split())) +A = list(map(int, input().split())) -for i in h: +for i in A: