import java.util.Scanner;
import java.util.*;
public class Main{
public static void main(String[] args) {
	Scanner sc=new Scanner(System.in);
	    long N=sc.nextLong();
	      long D=sc.nextLong();
	      int count=0;
	      while(N>0){
	      long X1=sc.nextLong();
	        long Y1=sc.nextLong();
	        double distance=Math.sqrt(X1*X1+Y1*Y1);
	          if(distance<=D){
	            count++;
	          }
	      N--;
	      }
	      System.out.println(count);
	    }
	  
} import java.util.Scanner; Scanner java.util import java.util.*; util.* java public class Main{
public static void main(String[] args) {
	Scanner sc=new Scanner(System.in);
	    long N=sc.nextLong();
	      long D=sc.nextLong();
	      int count=0;
	      while(N>0){
	      long X1=sc.nextLong();
	        long Y1=sc.nextLong();
	        double distance=Math.sqrt(X1*X1+Y1*Y1);
	          if(distance<=D){
	            count++;
	          }
	      N--;
	      }
	      System.out.println(count);
	    }
	  
} Main public static void main(String[] args) {
	Scanner sc=new Scanner(System.in);
	    long N=sc.nextLong();
	      long D=sc.nextLong();
	      int count=0;
	      while(N>0){
	      long X1=sc.nextLong();
	        long Y1=sc.nextLong();
	        double distance=Math.sqrt(X1*X1+Y1*Y1);
	          if(distance<=D){
	            count++;
	          }
	      N--;
	      }
	      System.out.println(count);
	    } main {
	Scanner sc=new Scanner(System.in);
	    long N=sc.nextLong();
	      long D=sc.nextLong();
	      int count=0;
	      while(N>0){
	      long X1=sc.nextLong();
	        long Y1=sc.nextLong();
	        double distance=Math.sqrt(X1*X1+Y1*Y1);
	          if(distance<=D){
	            count++;
	          }
	      N--;
	      }
	      System.out.println(count);
	    } Scanner sc=new Scanner(System.in); sc new Scanner(System.in) long N=sc.nextLong(); N sc.nextLong() sc.nextLong sc long D=sc.nextLong(); D sc.nextLong() sc.nextLong sc int count=0; count 0 while(N>0){
	      long X1=sc.nextLong();
	        long Y1=sc.nextLong();
	        double distance=Math.sqrt(X1*X1+Y1*Y1);
	          if(distance<=D){
	            count++;
	          }
	      N--;
	      } N>0 N 0 {
	      long X1=sc.nextLong();
	        long Y1=sc.nextLong();
	        double distance=Math.sqrt(X1*X1+Y1*Y1);
	          if(distance<=D){
	            count++;
	          }
	      N--;
	      } long X1=sc.nextLong(); X1 sc.nextLong() sc.nextLong sc long Y1=sc.nextLong(); Y1 sc.nextLong() sc.nextLong sc double distance=Math.sqrt(X1*X1+Y1*Y1); distance Math.sqrt(X1*X1+Y1*Y1) Math.sqrt Math X1*X1+Y1*Y1 X1*X1 X1 X1 Y1*Y1 Y1 Y1 if(distance<=D){
	            count++;
	          } distance<=D distance D {
	            count++;
	          } count++ count N-- N 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);
	    long N=sc.nextLong();
	      long D=sc.nextLong();
	      int count=0;
	      while(N>0){
	      long X1=sc.nextLong();
	        long Y1=sc.nextLong();
	        double distance=Math.sqrt(X1*X1+Y1*Y1);
	          if(distance<=D){
	            count++;
	          }
	      N--;
	      }
	      System.out.println(count);
	    }
	  
} public class Main{
public static void main(String[] args) {
	Scanner sc=new Scanner(System.in);
	    long N=sc.nextLong();
	      long D=sc.nextLong();
	      int count=0;
	      while(N>0){
	      long X1=sc.nextLong();
	        long Y1=sc.nextLong();
	        double distance=Math.sqrt(X1*X1+Y1*Y1);
	          if(distance<=D){
	            count++;
	          }
	      N--;
	      }
	      System.out.println(count);
	    }
	  
} Main
import java.util.Scanner;
import java.util.*;
public class Main{
public static void main(String[] args) {
	Scanner sc=new Scanner(System.in);
	    long N=sc.nextLong();
	      long D=sc.nextLong();
	      int count=0;
	      while(N>0){
	      long X1=sc.nextLong();
	        long Y1=sc.nextLong();
	        double distance=Math.sqrt(X1*X1+Y1*Y1);
	          if(distance<=D){
	            count++;
	          }
	      N--;
	      }
	      System.out.println(count);
	    }
	  
}