# coding: utf-8

# Your code here!



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

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



cou = 0

for i in h:

    if K<=i:

        cou+=1

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

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



cou = len([i for i in h if i>=K])

print(cou)
# coding: utf-8
# Your code here!
N, K = list(map(int, input().split()))
h = list(map(int, input().split()))
cou = 0
for i in h:
    if K <= i:
        cou += 1
print(cou)

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

-# coding: utf-8 -# Your code here! -cou = 0 -for i in h: -    if K <= i: -        cou += 1 +cou = len([i for i in h if i >= K])