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