#include<bits/stdc++.h>

using namespace std;

int main(){
	long long int t,n;
	cin>>t>>n;
	long long int count=0;
	while(t--){
		long long int x,y;
		cin>>x>>y;
		if(sqrt(x*x+y*y)<=n)	count++;
	}
	cout<<count<<endl;
}