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