N,K = map(int,input().split()) X = list(map(int,input().split())) Y = [X.pop()] while len(X): y = Y[-1] x = X.pop() if y - x >= K: Y.append(x) print(len(Y))