- 우선 주어진 값을 정렬.
- for문을 돌면서 요소가 length 범위 밖이면, start를 요소로 바꿔주고 결과값에 +1
def repair() :
n, l = map(int, input().split())
arr = list(map(int, input().split()))
arr.sort()
count = 1
start = arr[0]
for a in arr :
length = start + l - 1
if a <= length :
continue
else :
start = a
count += 1
print(count)
repair()