#include<iostream>
using namespace std;
typedef long long ll;
int main() {
	ll n,k;
	ll idex=0;
	cin>>n>>k;
	while(n--) {
		ll x,y;
		cin>>x>>y;
		if(x*x+y*y<=k*k) idex++;
	}
	cout<<idex<<endl;
	return 0;
}