#include <bits/stdc++.h>
using namespace std;
int main(){
double t,d,count=0;
cin>>t>>d;
while(t--){
	double a,b;
	cin>>a>>b;
	double res=sqrt(a*a+b*b);
	if(res<=d){
		count++;
	}
}
cout<<count<<endl;

	return 0;
}