from sys import stdin

import numpy as np





# noinspection PyShadowingBuiltinsInspection



def main():

    n, k = [int(x) for x in input().split()]

    hs = [int(x) for x in input().split()]

    cnt = 0

    for h in hs:

        if h >= k:

            cnt += 1

    print(cnt)

    return





if __name__ == "__main__":

    main()
N, K = input().split()

N = int(N)

K = int(K)

heights = input().split()



result = 0

for i in range(N):

  h = int(heights[i])

  if h >= K:

    result += 1



print(result)
from sys import stdin
import numpy as np

# noinspection PyShadowingBuiltinsInspection
def main():
    n, k = [int(x) for x in input().split()]
    hs = [int(x) for x in input().split()]
    cnt = 0
    for h in hs:
        if h >= k:
            cnt += 1
    print(cnt)
    return


if __name__ == "__main__":
    main()

N, K = input().split()
N = int(N)
K = int(K)
heights = input().split()
result = 0
for i in range(N):
    h = int(heights[i])
    if h >= K:
        result += 1
print(result)

-from sys import stdin -import numpy as np - -# noinspection PyShadowingBuiltinsInspection -def main(): -    n, k = [int(x) for x in input().split()] -    hs = [int(x) for x in input().split()] -    cnt = 0 -    for h in hs: -        if h >= k: -            cnt += 1 -    print(cnt) -    return - - -if __name__ == "__main__": -    main() +N, K = input().split() +N = int(N) +K = int(K) +heights = input().split() +result = 0 +for i in range(N): +    h = int(heights[i]) +    if h >= K: +        result += 1 +print(result)