n, k = map(int, input().split()) X = list(map(int, input().split())) ans = 0 l = -1 << 40 for x in X: if l + k <= x: ans += 1 l = x print(ans)