n,k=map(int,input().split()) y=list(map(int,input().split())) p=-10**10 c=0 for v in y: if v-p>=k: p=v c+=1 print(c)