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

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



can_ride = []



for i in range(N):

    if h[i] >= K:

        can_ride.append(h[i])

        

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

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

ans = 0



for i in H:

    if i >= k:

        ans += 1

        

print(ans)
N, K = list(map(int, input().split()))
h = list(map(int, input().split()))
can_ride = []
for i in range(N):
    if h[i] >= K:
        can_ride.append(h[i])
print((len(can_ride)))

n, k = list(map(int, input().split()))
H = list(map(int, input().split()))
ans = 0
for i in H:
    if i >= k:
        ans += 1
print(ans)

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