  import java.util.*;

  public class Main{
      public static void main(String[] args){
          Scanner sc = new Scanner(System.in);
          int n = Integer.parseInt(sc.next());
          int d = Integer.parseInt(sc.next());
          double i = 0,j = 0;
          int count = 0;
          double save = 0L;
          for(int cnt = 0;cnt < n;cnt++){
              i = Double.parseDouble(sc.next());
              j = Double.parseDouble(sc.next());
              save = Math.sqrt((double)(i * i + j * j));
              if(save <= d){
                  count++;
              }
          }
          System.out.println(count);
      }
  } import java.util.*; util.* java public class Main{
      public static void main(String[] args){
          Scanner sc = new Scanner(System.in);
          int n = Integer.parseInt(sc.next());
          int d = Integer.parseInt(sc.next());
          double i = 0,j = 0;
          int count = 0;
          double save = 0L;
          for(int cnt = 0;cnt < n;cnt++){
              i = Double.parseDouble(sc.next());
              j = Double.parseDouble(sc.next());
              save = Math.sqrt((double)(i * i + j * j));
              if(save <= d){
                  count++;
              }
          }
          System.out.println(count);
      }
  } Main public static void main(String[] args){
          Scanner sc = new Scanner(System.in);
          int n = Integer.parseInt(sc.next());
          int d = Integer.parseInt(sc.next());
          double i = 0,j = 0;
          int count = 0;
          double save = 0L;
          for(int cnt = 0;cnt < n;cnt++){
              i = Double.parseDouble(sc.next());
              j = Double.parseDouble(sc.next());
              save = Math.sqrt((double)(i * i + j * j));
              if(save <= d){
                  count++;
              }
          }
          System.out.println(count);
      } main {
          Scanner sc = new Scanner(System.in);
          int n = Integer.parseInt(sc.next());
          int d = Integer.parseInt(sc.next());
          double i = 0,j = 0;
          int count = 0;
          double save = 0L;
          for(int cnt = 0;cnt < n;cnt++){
              i = Double.parseDouble(sc.next());
              j = Double.parseDouble(sc.next());
              save = Math.sqrt((double)(i * i + j * j));
              if(save <= d){
                  count++;
              }
          }
          System.out.println(count);
      } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int d = Integer.parseInt(sc.next()); d Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc double i = 0 i 0 j = 0; j 0 int count = 0; count 0 double save = 0L; save 0L for(int cnt = 0;cnt < n;cnt++){
              i = Double.parseDouble(sc.next());
              j = Double.parseDouble(sc.next());
              save = Math.sqrt((double)(i * i + j * j));
              if(save <= d){
                  count++;
              }
          } int cnt = 0; int cnt = 0; cnt 0 cnt < n cnt n cnt++ cnt++ cnt {
              i = Double.parseDouble(sc.next());
              j = Double.parseDouble(sc.next());
              save = Math.sqrt((double)(i * i + j * j));
              if(save <= d){
                  count++;
              }
          } {
              i = Double.parseDouble(sc.next());
              j = Double.parseDouble(sc.next());
              save = Math.sqrt((double)(i * i + j * j));
              if(save <= d){
                  count++;
              }
          } i = Double.parseDouble(sc.next()) i Double.parseDouble(sc.next()) Double.parseDouble Double sc.next() sc.next sc j = Double.parseDouble(sc.next()) j Double.parseDouble(sc.next()) Double.parseDouble Double sc.next() sc.next sc save = Math.sqrt((double)(i * i + j * j)) save Math.sqrt((double)(i * i + j * j)) Math.sqrt Math (double)(i * i + j * j) i * i i i j * j j j if(save <= d){
                  count++;
              } save <= d save d {
                  count++;
              } count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main{
      public static void main(String[] args){
          Scanner sc = new Scanner(System.in);
          int n = Integer.parseInt(sc.next());
          int d = Integer.parseInt(sc.next());
          double i = 0,j = 0;
          int count = 0;
          double save = 0L;
          for(int cnt = 0;cnt < n;cnt++){
              i = Double.parseDouble(sc.next());
              j = Double.parseDouble(sc.next());
              save = Math.sqrt((double)(i * i + j * j));
              if(save <= d){
                  count++;
              }
          }
          System.out.println(count);
      }
  } public class Main{
      public static void main(String[] args){
          Scanner sc = new Scanner(System.in);
          int n = Integer.parseInt(sc.next());
          int d = Integer.parseInt(sc.next());
          double i = 0,j = 0;
          int count = 0;
          double save = 0L;
          for(int cnt = 0;cnt < n;cnt++){
              i = Double.parseDouble(sc.next());
              j = Double.parseDouble(sc.next());
              save = Math.sqrt((double)(i * i + j * j));
              if(save <= d){
                  count++;
              }
          }
          System.out.println(count);
      }
  } Main
  import java.util.*;

  public class Main{
      public static void main(String[] args){
          Scanner sc = new Scanner(System.in);
          int n = Integer.parseInt(sc.next());
          int d = Integer.parseInt(sc.next());
          double i = 0,j = 0;
          int count = 0;
          double save = 0L;
          for(int cnt = 0;cnt < n;cnt++){
              i = Double.parseDouble(sc.next());
              j = Double.parseDouble(sc.next());
              save = Math.sqrt((double)(i * i + j * j));
              if(save <= d){
                  count++;
              }
          }
          System.out.println(count);
      }
  }