import java.util.*;

public class Main{

	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        double D = sc.nextDouble();
        double[] list = new double[N*2];
      
        for(int i = 0; i < N*2; i++){
          list[i] = sc.nextDouble();
        }
       
        int count = 0;
        for(int i = 1; i < N*2; i+=2){
          double x = list[i-1];
          double y = list[i];
          double ans = x*x + y*y;
          double answer = Math.sqrt(ans);
         
           if(answer <= 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 = sc.nextInt();
        double D = sc.nextDouble();
        double[] list = new double[N*2];
      
        for(int i = 0; i < N*2; i++){
          list[i] = sc.nextDouble();
        }
       
        int count = 0;
        for(int i = 1; i < N*2; i+=2){
          double x = list[i-1];
          double y = list[i];
          double ans = x*x + y*y;
          double answer = Math.sqrt(ans);
         
           if(answer <= D){
             count++;
           }
        }
  
          System.out.println(count);
        
	}

} Main public static void main(String[] args){

		Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        double D = sc.nextDouble();
        double[] list = new double[N*2];
      
        for(int i = 0; i < N*2; i++){
          list[i] = sc.nextDouble();
        }
       
        int count = 0;
        for(int i = 1; i < N*2; i+=2){
          double x = list[i-1];
          double y = list[i];
          double ans = x*x + y*y;
          double answer = Math.sqrt(ans);
         
           if(answer <= D){
             count++;
           }
        }
  
          System.out.println(count);
        
	} main {

		Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        double D = sc.nextDouble();
        double[] list = new double[N*2];
      
        for(int i = 0; i < N*2; i++){
          list[i] = sc.nextDouble();
        }
       
        int count = 0;
        for(int i = 1; i < N*2; i+=2){
          double x = list[i-1];
          double y = list[i];
          double ans = x*x + y*y;
          double answer = Math.sqrt(ans);
         
           if(answer <= D){
             count++;
           }
        }
  
          System.out.println(count);
        
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc double D = sc.nextDouble(); D sc.nextDouble() sc.nextDouble sc double[] list = new double[N*2]; list new double[N*2] N*2 N 2 for(int i = 0; i < N*2; i++){
          list[i] = sc.nextDouble();
        } int i = 0; int i = 0; i 0 i < N*2 i N*2 N 2 i++ i++ i {
          list[i] = sc.nextDouble();
        } {
          list[i] = sc.nextDouble();
        } list[i] = sc.nextDouble() list[i] list i sc.nextDouble() sc.nextDouble sc int count = 0; count 0 for(int i = 1; i < N*2; i+=2){
          double x = list[i-1];
          double y = list[i];
          double ans = x*x + y*y;
          double answer = Math.sqrt(ans);
         
           if(answer <= D){
             count++;
           }
        } int i = 1; int i = 1; i 1 i < N*2 i N*2 N 2 i+=2 i+=2 i 2 {
          double x = list[i-1];
          double y = list[i];
          double ans = x*x + y*y;
          double answer = Math.sqrt(ans);
         
           if(answer <= D){
             count++;
           }
        } {
          double x = list[i-1];
          double y = list[i];
          double ans = x*x + y*y;
          double answer = Math.sqrt(ans);
         
           if(answer <= D){
             count++;
           }
        } double x = list[i-1]; x list[i-1] list i-1 i 1 double y = list[i]; y list[i] list i double ans = x*x + y*y; ans x*x + y*y x*x x x y*y y y double answer = Math.sqrt(ans); answer Math.sqrt(ans) Math.sqrt Math ans if(answer <= D){
             count++;
           } answer <= D answer 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 = sc.nextInt();
        double D = sc.nextDouble();
        double[] list = new double[N*2];
      
        for(int i = 0; i < N*2; i++){
          list[i] = sc.nextDouble();
        }
       
        int count = 0;
        for(int i = 1; i < N*2; i+=2){
          double x = list[i-1];
          double y = list[i];
          double ans = x*x + y*y;
          double answer = Math.sqrt(ans);
         
           if(answer <= D){
             count++;
           }
        }
  
          System.out.println(count);
        
	}

} public class Main{

	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        double D = sc.nextDouble();
        double[] list = new double[N*2];
      
        for(int i = 0; i < N*2; i++){
          list[i] = sc.nextDouble();
        }
       
        int count = 0;
        for(int i = 1; i < N*2; i+=2){
          double x = list[i-1];
          double y = list[i];
          double ans = x*x + y*y;
          double answer = Math.sqrt(ans);
         
           if(answer <= 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 = sc.nextInt();
        double D = sc.nextDouble();
        double[] list = new double[N*2];
      
        for(int i = 0; i < N*2; i++){
          list[i] = sc.nextDouble();
        }
       
        int count = 0;
        for(int i = 1; i < N*2; i+=2){
          double x = list[i-1];
          double y = list[i];
          double ans = x*x + y*y;
          double answer = Math.sqrt(ans);
         
           if(answer <= D){
             count++;
           }
        }
  
          System.out.println(count);
        
	}

}