#include <iostream>
using namespace std;
int main() {
int n;
cin>>n;
int a[n];
for (int i=0; i<n; i++)
cin>>a[i];
int x;
cin>>x;
int k=1;
int pos=0;
for(int i=1; i<n; i++)
if (a[i]-a[pos]>=x){
k++;
pos=i;
}
cout<<k;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKCmludCBtYWluKCkgewoJaW50IG47CgljaW4+Pm47CglpbnQgYVtuXTsKCWZvciAoaW50IGk9MDsgaTxuOyBpKyspCgkJY2luPj5hW2ldOwoJaW50IHg7CgljaW4+Png7CglpbnQgaz0xOwoJaW50IHBvcz0wOwoJZm9yKGludCBpPTE7IGk8bjsgaSsrKQoJCWlmIChhW2ldLWFbcG9zXT49eCl7CgkJCWsrKzsKCQkJcG9zPWk7CgkJfQoJCWNvdXQ8PGs7CiAgICByZXR1cm4gMDsKfQo=