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

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

count = 0



for i in range(n):

    if k <= h[i]:

        count += 1

print(count)
#別回答

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

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

count = 0



for i in h:

    #print(i)

    if i >= k:

        count += 1

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

# 別回答
n, k = list(map(int, input().split()))
h = list(map(int, input().split()))
count = 0
for i in h:
    # print(i)
    if i >= k:
        count += 1
print(count)

+# 別回答 -for i in range(n): -    if k <= h[i]: +for i in h: +    # print(i) +    if i >= k: