#include <bits/stdc++.h>
// limit
#define mod1 22439423LL
#define mod2 42342432LL
#define mod3 56454765LL
#define mod4 66867574LL
#define oo 1000000007
#define OO 1000000000000000007LL
// loop
#define fto(i, x, y) for(int i = (x); i <= (y); ++i)
#define fdto(i, x, y) for(int i = (x); i >= (y); --i)
#define ftoa(i, x, y, a) for(int i = (x); i <= (y); i += a)
#define fdtoa(i, x, y, a) for(int i = (x); i >= (y); i -= a)
#define ftosqrt(i, x, y) for(int i = (x); i*i <= (y); ++i)
#define ftoit(it, var) for (__typeof(var.begin()) it = var.begin(); it != var.end(); ++it)
#define fdtoit(rit, var) for (__typeof(var.rbegin()) rit = var.rbegin(); rit != var.rend(); ++rit)
// debug
#define debug cout << "*" << endl;
#define bug1d(a, x, y) { cout << #a << ": "; fto(_, x, y) cout << a[_] << ' '; cout << endl; }
#define bug2d(a, x, y, u, v) { cout << #a << ": " << endl; fto(i, x, y) {fto(j, u, v) cout << a[i][j] << ' '; cout << endl;}; cout << endl;}
#define bug(a) cout << #a << " = " << a << endl;
#define bug2(a, b) cout << #a << " = " << a << "; "; cout << #b << " = " << b << endl;
#define bug3(a, b, c) cout << #a << " = " << a << "; "; cout << #b << " = " << b << "; "; cout << #c << " = " << c << endl;
// operation
#define mp make_pair
#define pb push_back
#define pf push_front
// structure
#define ii pair<int, int>
#define iii pair<ii, int>
#define vi vector<int>
#define vll vector<ll>
#define vii vector<ii>
#define matrix vector<vi>
// get value
#define FF first
#define SS second
// data type
#define ll long long
#define ull unsigned long long
// function
#define lb lower_bound
#define ub upper_bound
// const value
#define pi 3.14159265358979323846264338327950288419716939937510
using namespace std;
template <class T>
T min(T a, T b, T c) {
return min(a, min(b, c));
}
template <class T>
T min(T a, T b, T c, T d) {
return min(a, min(b, min(c, d)));
}
template <class T>
T max(T a, T b, T c) {
return max(a, max(b, c));
}
template <class T>
T max(T a, T b, T c, T d) {
return max(a, max(b, max(c, d)));
}
bool cmp(const ii& a, const ii& b) {return (a.FF > b.FF || (a.FF == b.FF && a.SS >= b.SS));}
ll GCD(ll a, ll b) {return (a%b) ? GCD(b, a%b) : b;}
const string namePro = "tmp";
#define maxN 100007
int main() {
#ifndef ONLINE_JUDGE
// freopen((namePro+".inp").c_str(), "r", stdin);
// freopen((namePro+".out").c_str(), "w", stdout);
#endif // ONLINE_JUDGE
int n;
double eps = 1e-9;
while (scanf("%d", &n) == 1) {
int ans = 0;
double cur = -oo;
fto (i, 1, n) {
double x;
scanf("%lf", &x);
if (x-cur > 1.0-eps) {
++ans;
cur = x;
}
}
printf("%d\n", ans);
}
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CgovLyBsaW1pdAojZGVmaW5lIG1vZDEgMjI0Mzk0MjNMTAojZGVmaW5lIG1vZDIgNDIzNDI0MzJMTAojZGVmaW5lIG1vZDMgNTY0NTQ3NjVMTAojZGVmaW5lIG1vZDQgNjY4Njc1NzRMTAojZGVmaW5lIG9vIDEwMDAwMDAwMDcKI2RlZmluZSBPTyAxMDAwMDAwMDAwMDAwMDAwMDA3TEwKCi8vIGxvb3AKI2RlZmluZSBmdG8oaSwgeCwgeSkgZm9yKGludCBpID0gKHgpOyBpIDw9ICh5KTsgKytpKQojZGVmaW5lIGZkdG8oaSwgeCwgeSkgZm9yKGludCBpID0gKHgpOyBpID49ICh5KTsgLS1pKQojZGVmaW5lIGZ0b2EoaSwgeCwgeSwgYSkgZm9yKGludCBpID0gKHgpOyBpIDw9ICh5KTsgaSArPSBhKQojZGVmaW5lIGZkdG9hKGksIHgsIHksIGEpIGZvcihpbnQgaSA9ICh4KTsgaSA+PSAoeSk7IGkgLT0gYSkKI2RlZmluZSBmdG9zcXJ0KGksIHgsIHkpIGZvcihpbnQgaSA9ICh4KTsgaSppIDw9ICh5KTsgKytpKQojZGVmaW5lIGZ0b2l0KGl0LCB2YXIpIGZvciAoX190eXBlb2YodmFyLmJlZ2luKCkpIGl0ID0gdmFyLmJlZ2luKCk7IGl0ICE9IHZhci5lbmQoKTsgKytpdCkKI2R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HVybiAoYSViKSA/IEdDRChiLCBhJWIpIDogYjt9Cgpjb25zdCBzdHJpbmcgbmFtZVBybyA9ICJ0bXAiOwojZGVmaW5lIG1heE4gMTAwMDA3CgppbnQgbWFpbigpIHsKICAgICNpZm5kZWYgT05MSU5FX0pVREdFCiAgICAgICAgLy8gZnJlb3BlbigobmFtZVBybysiLmlucCIpLmNfc3RyKCksICJyIiwgc3RkaW4pOwogICAgICAgCS8vIGZyZW9wZW4oKG5hbWVQcm8rIi5vdXQiKS5jX3N0cigpLCAidyIsIHN0ZG91dCk7CiAgICAjZW5kaWYgLy8gT05MSU5FX0pVREdFCgogICAgaW50IG47CiAgICBkb3VibGUgZXBzID0gMWUtOTsKCiAgICB3aGlsZSAoc2NhbmYoIiVkIiwgJm4pID09IDEpIHsKICAgICAgICBpbnQgYW5zID0gMDsKICAgICAgICBkb3VibGUgY3VyID0gLW9vOwogICAgICAgIGZ0byAoaSwgMSwgbikgewogICAgICAgICAgICBkb3VibGUgeDsKICAgICAgICAgICAgc2NhbmYoIiVsZiIsICZ4KTsKICAgICAgICAgICAgaWYgKHgtY3VyID4gMS4wLWVwcykgewogICAgICAgICAgICAgICAgKythbnM7CiAgICAgICAgICAgICAgICBjdXIgPSB4OwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHByaW50ZigiJWRcbiIsIGFucyk7CiAgICB9Cn0=