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

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

res = 0

for i in a:

    res += int(i >= k)

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

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

print((sum(i >= k for i in a)))

n, k = list(map(int, input().split()))
a = list(map(int, input().split()))
res = 0
for i in a:
    res += int(i >= k)
print(res)

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

-res = 0 -for i in a: -    res += int(i >= k) -print(res) +print((sum(i >= k for i in a)))