N, K = map(int, input().split()) X = list(map(int, input().split())) cnt = 1 now = X[0] for i in range(1,N): d = X[i] - now if d >= K: cnt += 1 now = X[i] print(cnt)