n,x=map(int,input().split()) A=list(map(int,input().split())) cnt=[0]*(10**5+1) for a in A:cnt[a]+=1 ans=0 for a in A: if 0<=x-a