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

if not ( 1 <= N <= 10**5 and 1 <= K <= 500 ): sys.exit()

count = 0
for I in array_hight:
    if not ( 1 <= I <= 500): sys.exit()
    if I >= K:
        count += 1
print(count) import sys sys N,K = map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split K array_hight = list(map(int,input().split())) array_hight list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split if not ( 1 <= N <= 10**5 and 1 <= K <= 500 ): sys.exit() not ( 1 <= N <= 10**5 and 1 <= K <= 500 ) 1 <= N <= 10**5 and 1 <= K <= 500 1 <= N <= 10**5 1 <= N 1 N 10**5 10 5 1 <= K <= 500 1 <= K 1 K 500 count = 0 count 0 for I in array_hight:
    if not ( 1 <= I <= 500): sys.exit()
    if I >= K:
        count += 1 I array_hight if not ( 1 <= I <= 500): sys.exit()
     not ( 1 <= I <= 500) 1 <= I <= 500 1 <= I 1 I 500 if I >= K:
        count += 1 I >= K I K count += 1 count 1 print(count) print count count = 0 0 count N,K = map(int,input().split()) map(int,input().split()) N count += 1 1 count K = map(int,input().split()) map(int,input().split()) K array_hight = list(map(int,input().split())) list(map(int,input().split())) array_hight
import sys
N,K = map(int,input().split())
array_hight = list(map(int,input().split()))

if not ( 1 <= N <= 10**5 and 1 <= K <= 500 ): sys.exit()

count = 0
for I in array_hight:
    if not ( 1 <= I <= 500): sys.exit()
    if I >= K:
        count += 1
print(count)