#include<bits/stdc++.h>
using namespace std;
int main()
{
long long int n,d;
cin>>n>>d;
d=d*d;
int count =0;
long long int x,y;
for(int i=0;i<n;i++)
{cin>>x>>y;
x=x*x+y*y;
if(x<=d)
count++;
}
  cout<<count;
}