import java.util.*;
 
class Main{
  public static void main(String args[]){
    Scanner scan=new Scanner(System.in);
    int num=scan.nextInt();
    int disall=scan.nextInt();
    int x,y;
    int ans=0;
    for(int a=0; a<num; a++){
      x=scan.nextInt();
      y=scan.nextInt();
      if(Math.sqrt((long)x*(long)x+(long)y*(long)y)<=disall){
        ans++;
      }
    }
    System.out.println(ans);
  }
} import java.util.*; util.* java class Main{
  public static void main(String args[]){
    Scanner scan=new Scanner(System.in);
    int num=scan.nextInt();
    int disall=scan.nextInt();
    int x,y;
    int ans=0;
    for(int a=0; a<num; a++){
      x=scan.nextInt();
      y=scan.nextInt();
      if(Math.sqrt((long)x*(long)x+(long)y*(long)y)<=disall){
        ans++;
      }
    }
    System.out.println(ans);
  }
} Main public static void main(String args[]){
    Scanner scan=new Scanner(System.in);
    int num=scan.nextInt();
    int disall=scan.nextInt();
    int x,y;
    int ans=0;
    for(int a=0; a<num; a++){
      x=scan.nextInt();
      y=scan.nextInt();
      if(Math.sqrt((long)x*(long)x+(long)y*(long)y)<=disall){
        ans++;
      }
    }
    System.out.println(ans);
  } main {
    Scanner scan=new Scanner(System.in);
    int num=scan.nextInt();
    int disall=scan.nextInt();
    int x,y;
    int ans=0;
    for(int a=0; a<num; a++){
      x=scan.nextInt();
      y=scan.nextInt();
      if(Math.sqrt((long)x*(long)x+(long)y*(long)y)<=disall){
        ans++;
      }
    }
    System.out.println(ans);
  } Scanner scan=new Scanner(System.in); scan new Scanner(System.in) int num=scan.nextInt(); num scan.nextInt() scan.nextInt scan int disall=scan.nextInt(); disall scan.nextInt() scan.nextInt scan int x x y; y int ans=0; ans 0 for(int a=0; a<num; a++){
      x=scan.nextInt();
      y=scan.nextInt();
      if(Math.sqrt((long)x*(long)x+(long)y*(long)y)<=disall){
        ans++;
      }
    } int a=0; int a=0; a 0 a<num a num a++ a++ a {
      x=scan.nextInt();
      y=scan.nextInt();
      if(Math.sqrt((long)x*(long)x+(long)y*(long)y)<=disall){
        ans++;
      }
    } {
      x=scan.nextInt();
      y=scan.nextInt();
      if(Math.sqrt((long)x*(long)x+(long)y*(long)y)<=disall){
        ans++;
      }
    } x=scan.nextInt() x scan.nextInt() scan.nextInt scan y=scan.nextInt() y scan.nextInt() scan.nextInt scan if(Math.sqrt((long)x*(long)x+(long)y*(long)y)<=disall){
        ans++;
      } Math.sqrt((long)x*(long)x+(long)y*(long)y)<=disall Math.sqrt((long)x*(long)x+(long)y*(long)y) Math.sqrt Math (long)x*(long)x+(long)y*(long)y (long)x*(long)x (long)x (long)x (long)y*(long)y (long)y (long)y disall {
        ans++;
      } ans++ ans System.out.println(ans) System.out.println System.out System System.out ans String args[] args
import java.util.*;
 
class Main{
  public static void main(String args[]){
    Scanner scan=new Scanner(System.in);
    int num=scan.nextInt();
    int disall=scan.nextInt();
    int x,y;
    int ans=0;
    for(int a=0; a<num; a++){
      x=scan.nextInt();
      y=scan.nextInt();
      if(Math.sqrt((long)x*(long)x+(long)y*(long)y)<=disall){
        ans++;
      }
    }
    System.out.println(ans);
  }
}