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