#include<bits/stdc++.h>
using namespace std;
int n,d;
int main()
{
	cin>>n>>d;
	int i,x,y,tt=0;
	for(i=1;i<=n;++i)
	{
		cin>>x>>y;
		double s=sqrt(1ll*x*x+1ll*y*y);
		if(s<=d)
			tt++;
	}
	cout<<tt;
	return 0;
}