t = 1
# t = input()
# t = int(t)
def max(a,b):
	if a > b:
		return a
	return b
while t > 0:
	t -= 1
	n,k = map(int,input().strip().split())
	v = list(map(int,input().strip().split()))[0:n]
	# m = {}
	ans = 0
	for i in v:
		if i >= k:
			ans += 1
		# temp = x/i
		# if(x%i != 0):
		# 	temp += 1
		# m[i] += 1
	# ans = 0
	print(ans)
	# rem = 0 t = 1 t 1 def max(a,b):
	if a > b:
		return a
	return b max if a > b:
		return a
	 a > b a b return a a return b b a a b b while t > 0:
	t -= 1
	n,k = map(int,input().strip().split())
	v = list(map(int,input().strip().split()))[0:n]
	# m = {}
	ans = 0
	for i in v:
		if i >= k:
			ans += 1
		# temp = x/i
		# if(x%i != 0):
		# 	temp += 1
		# m[i] += 1
	# ans = 0
	print(ans)
	# rem = 0 t > 0 t 0 t -= 1 t 1 n,k = map(int,input().strip().split()) n map(int,input().strip().split()) map int input().strip().split() ().strip().split ().strip() ().strip () input strip split k v = list(map(int,input().strip().split()))[0:n] v list(map(int,input().strip().split()))[0:n] (map(int,input().strip().split())) list map(int,input().strip().split()) map int input().strip().split() ().strip().split ().strip() ().strip () input strip split 0:n 0 n ans = 0 ans 0 for i in v:
		if i >= k:
			ans += 1
		# temp = x/i
		# if(x%i != 0):
		# 	temp += 1
		# m[i] += 1
	# ans = 0
	 i v if i >= k:
			ans += 1
		# temp = x/i
		# if(x%i != 0):
		# 	temp += 1
		# m[i] += 1
	# ans = 0
	 i >= k i k ans += 1 ans 1 print(ans) print ans ans = 0 0 ans t -= 1 1 t ans += 1 1 ans t = 1 1 t v = list(map(int,input().strip().split()))[0:n] list(map(int,input().strip().split()))[0:n] v def max(a,b):
	if a > b:
		return a
	return b def max(a,b):
	if a > b:
		return a
	return b max k = map(int,input().strip().split()) map(int,input().strip().split()) k n,k = map(int,input().strip().split()) map(int,input().strip().split()) n
t = 1
# t = input()
# t = int(t)
def max(a,b):
	if a > b:
		return a
	return b
while t > 0:
	t -= 1
	n,k = map(int,input().strip().split())
	v = list(map(int,input().strip().split()))[0:n]
	# m = {}
	ans = 0
	for i in v:
		if i >= k:
			ans += 1
		# temp = x/i
		# if(x%i != 0):
		# 	temp += 1
		# m[i] += 1
	# ans = 0
	print(ans)
	# rem = 0
