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

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

ans = 0

for i in range(n):

    if h[i] >= k:

        ans += 1

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

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

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

n, k = list(map(int, input().split()))
h = list(map(int, input().split()))
print((sum(a >= k for a in h)))

-ans = 0 -for i in range(n): -    if h[i] >= k: -        ans += 1 -print(ans) +print((sum(a >= k for a in h)))