#include <stdio.h>
#include <math.h>

int main(void){
  int N,D,x[200000],y[200000],i,count=0;
  scanf("%d %d",&N,&D);
  for(i=0;i<=N-1;i++){
    scanf("%d %d",&x[i],&y[i]);
    if(sqrt(x[i]*x[i]+y[i]*y[i])<=D)
      count++;
  }
  printf("%d\n",count);


  return 0;
}