N, K = map(int, input().split()) X = list(map(int, input().split())) cnt = 0 lst = -2 * 10**9 for x in X: if x - lst >= K: cnt += 1 lst = x print(cnt)