#include <cstdio>
#include <algorithm>

using namespace std;

int a[100010];

int main()
{
	//freopen("input.txt","r",stdin);
	//freopen("output.txt","w",stdout);
	int n,c,k;scanf("%d%d%d",&n,&c,&k);
	for (int i=1;i<=n;i++) scanf("%d",&a[i]);
	sort(a+1,a+n+1);
	int x=1,ans=0;
	while (x<=n)
	{
		int y=x;
		while (y<=n&&a[y]-a[x]<=k&&y-x<c) y++;
		x=y;ans++;
	}
	printf("%d\n",ans);
	return 0;
}
