#include<stdio.h>


int main()
{
	int n, l;
	scanf("%d %d", &n, &l);
	int arr[1001];
	for (int i = 0; i < n; i++)
	{
		int temp;
		scanf("%d", &temp);
		arr[temp] = 1;
	}

	
	int count = 0;

	for (int i = 1; i <= 1000;)
	{
		if (arr[i] == 1)
		{
			count++;
			for (int j = i; j <= l; j++)
			{
				arr[j] = 0;
			}
			i += l;
		}
		else i++;

	}

	printf("%d", count);

}