n,k=map(int,input().split())

l=[]
for i in range(n):
  a=int(input())
  l.append(a)

sa=[]
ss=[]
for i in range(n-1):
  sa.append(l[i]-l[i+1])

for i in range(len(sa)-1):
  if len(sa)<=i:
    break
  if k<abs(sa[i]) and abs(sa[i]+sa[i+1])<=k:
    sa[i]=l[i]-l[i+2]
    sa.pop(i+1)

print(len(sa)+1)