n,k=map(int,input().split())
ans=[0]
xlis=[]
for i in range(n):
    x=int(input())
    xlis.append(x)
ave=sum(xlis)/n
ind=0
for i in range(n):
    x=xlis[i]
    if(x+ans[ind-1]>100*ave):
        continue
    if(ind==0):
        ans[0]=x
        ind+=1
        continue
    if(abs(x-ans[ind-1])<=k):
        ans.append(x)
        ind+=1
print(ind)