N,K = map(int,input().split()) X = list(map(int,input().split())) now = 0 ans = 1 for i in range(1,N): a = X[i-1] b = X[i] now += b - a if now < K: pass else: ans += 1 now = 0 print(ans)