import java.util.Scanner;

public class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
     
    int n = sc.nextInt();
    int d = sc.nextInt();
    int m=0;
    int i=0;
    while(i < n){ 
      long a = sc.nextLong();
      long b = sc.nextLong();
      i++;
      if(Math.sqrt(a*a + b*b)<=d) m++;
   
    }
    
    System.out.println(m);
  }
} import java.util.Scanner; Scanner java.util public class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
     
    int n = sc.nextInt();
    int d = sc.nextInt();
    int m=0;
    int i=0;
    while(i < n){ 
      long a = sc.nextLong();
      long b = sc.nextLong();
      i++;
      if(Math.sqrt(a*a + b*b)<=d) m++;
   
    }
    
    System.out.println(m);
  }
} Main public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
     
    int n = sc.nextInt();
    int d = sc.nextInt();
    int m=0;
    int i=0;
    while(i < n){ 
      long a = sc.nextLong();
      long b = sc.nextLong();
      i++;
      if(Math.sqrt(a*a + b*b)<=d) m++;
   
    }
    
    System.out.println(m);
  } main {
    Scanner sc = new Scanner(System.in);
     
    int n = sc.nextInt();
    int d = sc.nextInt();
    int m=0;
    int i=0;
    while(i < n){ 
      long a = sc.nextLong();
      long b = sc.nextLong();
      i++;
      if(Math.sqrt(a*a + b*b)<=d) m++;
   
    }
    
    System.out.println(m);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int d = sc.nextInt(); d sc.nextInt() sc.nextInt sc int m=0; m 0 int i=0; i 0 while(i < n){ 
      long a = sc.nextLong();
      long b = sc.nextLong();
      i++;
      if(Math.sqrt(a*a + b*b)<=d) m++;
   
    } i < n i n { 
      long a = sc.nextLong();
      long b = sc.nextLong();
      i++;
      if(Math.sqrt(a*a + b*b)<=d) m++;
   
    } long a = sc.nextLong(); a sc.nextLong() sc.nextLong sc long b = sc.nextLong(); b sc.nextLong() sc.nextLong sc i++ i if(Math.sqrt(a*a + b*b)<=d) m++; Math.sqrt(a*a + b*b)<=d Math.sqrt(a*a + b*b) Math.sqrt Math a*a + b*b a*a a a b*b b b d m++ m System.out.println(m) System.out.println System.out System System.out m String args[] args public class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
     
    int n = sc.nextInt();
    int d = sc.nextInt();
    int m=0;
    int i=0;
    while(i < n){ 
      long a = sc.nextLong();
      long b = sc.nextLong();
      i++;
      if(Math.sqrt(a*a + b*b)<=d) m++;
   
    }
    
    System.out.println(m);
  }
} public class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
     
    int n = sc.nextInt();
    int d = sc.nextInt();
    int m=0;
    int i=0;
    while(i < n){ 
      long a = sc.nextLong();
      long b = sc.nextLong();
      i++;
      if(Math.sqrt(a*a + b*b)<=d) m++;
   
    }
    
    System.out.println(m);
  }
} Main
import java.util.Scanner;

public class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
     
    int n = sc.nextInt();
    int d = sc.nextInt();
    int m=0;
    int i=0;
    while(i < n){ 
      long a = sc.nextLong();
      long b = sc.nextLong();
      i++;
      if(Math.sqrt(a*a + b*b)<=d) m++;
   
    }
    
    System.out.println(m);
  }
}