#include <bits/stdc++.h>
using namespace std;

int main()
{
	int n,c,k,cn,in,Ans,a[100010];
	cin>>n>>c>>k;
	for(int i=0;i<n;i++)cin>>a[i];
	sort(a,a+n);
	Ans = 1;
	in = a[0];
	cn = 1;
	for(int i=1;i<n;i++){
		if(in+k<a[i] || cn==c){
			Ans+=1;
			in = a[i];
			cn =1;
		}
		else cn++;
		
	}
	cout<<Ans<<endl;
	return 0;
}
