N,x = map(int,input().split())
hito = input().split()
poo = [hito]
zyun = sorted(hito)

ok = 0
for i in range(len(hito)):
	if x-int(zyun[i])>=0:
		ok+=1
		if ok == len(hito):
			print(ok)
			exit()
	else:
		print(ok)
		exit()
