import java.util.*;
public class Main {
    public static void main(String args[]) {
     Scanner s=new Scanner(System.in);
  int n=s.nextInt();
  double d=s.nextDouble();
  int c=0;
  for(int i=0;i<n;i++)
  {
      int x=s.nextInt();
      int y=s.nextInt();
      long x1=x*x;
      long y1=y*y;
     double d1 = Math.hypot(x, y);
    
      if(d1<=d)
      {
      c++;
    // System.out.print(x+" "+y+"\n");
      }
  }
  System.out.println(c);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String args[]) {
     Scanner s=new Scanner(System.in);
  int n=s.nextInt();
  double d=s.nextDouble();
  int c=0;
  for(int i=0;i<n;i++)
  {
      int x=s.nextInt();
      int y=s.nextInt();
      long x1=x*x;
      long y1=y*y;
     double d1 = Math.hypot(x, y);
    
      if(d1<=d)
      {
      c++;
    // System.out.print(x+" "+y+"\n");
      }
  }
  System.out.println(c);
    }
} Main public static void main(String args[]) {
     Scanner s=new Scanner(System.in);
  int n=s.nextInt();
  double d=s.nextDouble();
  int c=0;
  for(int i=0;i<n;i++)
  {
      int x=s.nextInt();
      int y=s.nextInt();
      long x1=x*x;
      long y1=y*y;
     double d1 = Math.hypot(x, y);
    
      if(d1<=d)
      {
      c++;
    // System.out.print(x+" "+y+"\n");
      }
  }
  System.out.println(c);
    } main {
     Scanner s=new Scanner(System.in);
  int n=s.nextInt();
  double d=s.nextDouble();
  int c=0;
  for(int i=0;i<n;i++)
  {
      int x=s.nextInt();
      int y=s.nextInt();
      long x1=x*x;
      long y1=y*y;
     double d1 = Math.hypot(x, y);
    
      if(d1<=d)
      {
      c++;
    // System.out.print(x+" "+y+"\n");
      }
  }
  System.out.println(c);
    } Scanner s=new Scanner(System.in); s new Scanner(System.in) int n=s.nextInt(); n s.nextInt() s.nextInt s double d=s.nextDouble(); d s.nextDouble() s.nextDouble s int c=0; c 0 for(int i=0;i<n;i++)
  {
      int x=s.nextInt();
      int y=s.nextInt();
      long x1=x*x;
      long y1=y*y;
     double d1 = Math.hypot(x, y);
    
      if(d1<=d)
      {
      c++;
    // System.out.print(x+" "+y+"\n");
      }
  } int i=0; int i=0; i 0 i<n i n i++ i++ i {
      int x=s.nextInt();
      int y=s.nextInt();
      long x1=x*x;
      long y1=y*y;
     double d1 = Math.hypot(x, y);
    
      if(d1<=d)
      {
      c++;
    // System.out.print(x+" "+y+"\n");
      }
  } {
      int x=s.nextInt();
      int y=s.nextInt();
      long x1=x*x;
      long y1=y*y;
     double d1 = Math.hypot(x, y);
    
      if(d1<=d)
      {
      c++;
    // System.out.print(x+" "+y+"\n");
      }
  } int x=s.nextInt(); x s.nextInt() s.nextInt s int y=s.nextInt(); y s.nextInt() s.nextInt s long x1=x*x; x1 x*x x x long y1=y*y; y1 y*y y y double d1 = Math.hypot(x, y); d1 Math.hypot(x, y) Math.hypot Math x y if(d1<=d)
      {
      c++;
    // System.out.print(x+" "+y+"\n");
      } d1<=d d1 d {
      c++;
    // System.out.print(x+" "+y+"\n");
      } c++ c System.out.println(c) System.out.println System.out System System.out c String args[] args public class Main {
    public static void main(String args[]) {
     Scanner s=new Scanner(System.in);
  int n=s.nextInt();
  double d=s.nextDouble();
  int c=0;
  for(int i=0;i<n;i++)
  {
      int x=s.nextInt();
      int y=s.nextInt();
      long x1=x*x;
      long y1=y*y;
     double d1 = Math.hypot(x, y);
    
      if(d1<=d)
      {
      c++;
    // System.out.print(x+" "+y+"\n");
      }
  }
  System.out.println(c);
    }
} public class Main {
    public static void main(String args[]) {
     Scanner s=new Scanner(System.in);
  int n=s.nextInt();
  double d=s.nextDouble();
  int c=0;
  for(int i=0;i<n;i++)
  {
      int x=s.nextInt();
      int y=s.nextInt();
      long x1=x*x;
      long y1=y*y;
     double d1 = Math.hypot(x, y);
    
      if(d1<=d)
      {
      c++;
    // System.out.print(x+" "+y+"\n");
      }
  }
  System.out.println(c);
    }
} Main
import java.util.*;
public class Main {
    public static void main(String args[]) {
     Scanner s=new Scanner(System.in);
  int n=s.nextInt();
  double d=s.nextDouble();
  int c=0;
  for(int i=0;i<n;i++)
  {
      int x=s.nextInt();
      int y=s.nextInt();
      long x1=x*x;
      long y1=y*y;
     double d1 = Math.hypot(x, y);
    
      if(d1<=d)
      {
      c++;
    // System.out.print(x+" "+y+"\n");
      }
  }
  System.out.println(c);
    }
}