#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main()
{
ll n,d;
ll ans=0;
cin>>n>>d;
d*=d;
while(n--)
{
    ll x,y;
    cin>>x>>y;
    x*=x,y*=y;
    if(x+y<=d)
        ans++;
}
cout<<ans<<endl;
}
