n,k=map(int,input().split())
A=[int(input()) for i in range(n)]
B=[A[i+1]-A[i] for i in range(n-1)]
cut=0

# C=[i for i in range(n-1) if abs(B[i])<k]
# print(C)


for i in range(n-1):
    if B[i]==None: continue
    if abs(B[i])<=k:continue
    if i==0 or i==n-2:
        cut+=1
        B[i]=None;continue
    ue=i-1 ; shita=i+1
    while (abs(B[i])>k and 0<=ue<n-1 and 0<=shita<n-1):
        if B[ue]==None or B[shita]==None:
            if B[ue]==None :
                ue-=1
            if B[shita]==None:
               shita+=1
            continue
            
        if B[i]>0:
            
            if B[ue] < B[shita]:
                B[i]+=B[ue]
                cut+=1
                B[ue]=None
                ue-=1
            else:
                B[i]+=B[shita]
                cut+=1
                B[shita]=None
                shita+=1
        else:
                        if B[ue] > B[shita]:
                            B[i]+=B[ue]
                            cut+=1
                            B[ue]=None
                            ue-=1
                        else:
                            B[i]+=B[shita]
                            cut+=1
                            B[shita]=None
                            shita+=1
    if abs(B[i])>k and (ue==-1 or shita==n-1):
            # B[i]=None;cut+=1;break
            B[i]=None
            if ue==-1:
                cut-= shita-i-1
                cut+=1
            else:
                cut-= i-ue-1
                cut+=1
                
        #if shita==n-1:
        #    print(n-cut);exit()

print(n-cut)
