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

h_list = list(int(i) for i in input().split())

cnt = 0

for i in h_list:

    if i >= k:

        cnt += 1

print(cnt)
import sys



sys.setrecursionlimit(10 ** 7)

f_inf = float('inf')

mod = 10 ** 9 + 7





def resolve():

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

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



    res = 0

    for i in range(n):

        if H[i] >= k:

            res += 1

    print(res)





if __name__ == '__main__':

    resolve()

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

import sys

sys.setrecursionlimit(10**7)
f_inf = float("inf")
mod = 10**9 + 7


def resolve():
    n, k = list(map(int, input().split()))
    H = list(map(int, input().split()))
    res = 0
    for i in range(n):
        if H[i] >= k:
            res += 1
    print(res)


if __name__ == "__main__":
    resolve()

-n, k = list(map(int, input().split())) -h_list = list(int(i) for i in input().split()) -cnt = 0 -for i in h_list: -    if i >= k: -        cnt += 1 -print(cnt) +import sys + +sys.setrecursionlimit(10**7) +f_inf = float("inf") +mod = 10**9 + 7 + + +def resolve(): +    n, k = list(map(int, input().split())) +    H = list(map(int, input().split())) +    res = 0 +    for i in range(n): +        if H[i] >= k: +            res += 1 +    print(res) + + +if __name__ == "__main__": +    resolve()