#include <iostream>
#include <cmath>
using namespace std;
int main() {
long long n,d,a,b,c,e,f,k=0;
cin>>n>>d;
while(n--){
  cin>>a>>b;
  c=a*a;
  e=b*b;
  f=e+c;
if(sqrt(f)<=d){
  k+=1;
}

}
cout<<k;
}