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

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

c = 0

for h in H:

    if h >=K:

        c += 1

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

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

print((len([i for i in h if i>=k])))
N, K = list(map(int, input().split()))
H = list(map(int, input().split()))
c = 0
for h in H:
    if h >= K:
        c += 1
print(c)

n, k = list(map(int, input().split()))
h = list(map(int, input().split()))
print((len([i for i in h if i >= k])))

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