n,k=map(int,input().split()) x=list(map(int,input().split())) cnt=1 t=x[0] for i in range(1,n): if x[i]-t>=k: t=x[i] cnt+=1 print(cnt)