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

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

print((sum(h[i] >= K for i in range(N))))
N, K = list(map(int, input().split()))

print((sum([h >= K for h in map(int, input().split())])))
N, K = list(map(int, input().split()))
h = list(map(int, input().split()))
print((sum(h[i] >= K for i in range(N))))

N, K = list(map(int, input().split()))
print((sum([h >= K for h in map(int, input().split())])))

-h = list(map(int, input().split())) -print((sum(h[i] >= K for i in range(N)))) +print((sum([h >= K for h in map(int, input().split())])))