function Main(input){
	var tmp = input.split('\n');
	var NCK = tmp[0].split(' ').map(a=>Number(a));
	var N = NCK[0];
	var C = NCK[1];
	var K = NCK[2];
	tmp.shift();
	tmp.pop();
	var T = tmp.map(a=>Number(a));
	var bus = 0;
	var t = 0;
	var c = 0;
	T.sort((a,b)=>a<b?-1:1);
	for(var i=0;i<N;i++){
		if(i==0){
			bus++;
			t = T[0];
			c = C-1;
		}else{
			if((T[i]<=t+K)&&(1<=c)){
				--c;
			}else{
				bus++;
				t = T[i];
				c = C;
			}
		}
	}

  console.log(bus);
}
Main(require('fs').readFileSync('/dev/stdin', 'utf8'));