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();//距離
        long x[] =new long[n];
        long y[] =new long[n];
      	int count=0;
      
      for(int i=0;i<n;i++){
        x[i]=sc.nextLong();      
        y[i]=sc.nextLong(); 
      }
      
      for(int i=0;i<n;i++){
    	if(Math.sqrt(x[i]*x[i]+y[i]*y[i])<=d){
			count+=1;
        }
      }
      
     System.out.println(count); 
    } 
}





 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();//距離
        long x[] =new long[n];
        long y[] =new long[n];
      	int count=0;
      
      for(int i=0;i<n;i++){
        x[i]=sc.nextLong();      
        y[i]=sc.nextLong(); 
      }
      
      for(int i=0;i<n;i++){
    	if(Math.sqrt(x[i]*x[i]+y[i]*y[i])<=d){
			count+=1;
        }
      }
      
     System.out.println(count); 
    } 
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();//点の数
      	int d = sc.nextInt();//距離
        long x[] =new long[n];
        long y[] =new long[n];
      	int count=0;
      
      for(int i=0;i<n;i++){
        x[i]=sc.nextLong();      
        y[i]=sc.nextLong(); 
      }
      
      for(int i=0;i<n;i++){
    	if(Math.sqrt(x[i]*x[i]+y[i]*y[i])<=d){
			count+=1;
        }
      }
      
     System.out.println(count); 
    } main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();//点の数
      	int d = sc.nextInt();//距離
        long x[] =new long[n];
        long y[] =new long[n];
      	int count=0;
      
      for(int i=0;i<n;i++){
        x[i]=sc.nextLong();      
        y[i]=sc.nextLong(); 
      }
      
      for(int i=0;i<n;i++){
    	if(Math.sqrt(x[i]*x[i]+y[i]*y[i])<=d){
			count+=1;
        }
      }
      
     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 int d = sc.nextInt(); d sc.nextInt() sc.nextInt sc long x[] =new long[n]; x new long[n] n long y[] =new long[n]; y new long[n] n int count=0; count 0 for(int i=0;i<n;i++){
        x[i]=sc.nextLong();      
        y[i]=sc.nextLong(); 
      } int i=0; int i=0; i 0 i<n i n i++ i++ i {
        x[i]=sc.nextLong();      
        y[i]=sc.nextLong(); 
      } {
        x[i]=sc.nextLong();      
        y[i]=sc.nextLong(); 
      } x[i]=sc.nextLong() x[i] x i sc.nextLong() sc.nextLong sc y[i]=sc.nextLong() y[i] y i sc.nextLong() sc.nextLong sc for(int i=0;i<n;i++){
    	if(Math.sqrt(x[i]*x[i]+y[i]*y[i])<=d){
			count+=1;
        }
      } int i=0; int i=0; i 0 i<n i n i++ i++ i {
    	if(Math.sqrt(x[i]*x[i]+y[i]*y[i])<=d){
			count+=1;
        }
      } {
    	if(Math.sqrt(x[i]*x[i]+y[i]*y[i])<=d){
			count+=1;
        }
      } if(Math.sqrt(x[i]*x[i]+y[i]*y[i])<=d){
			count+=1;
        } Math.sqrt(x[i]*x[i]+y[i]*y[i])<=d Math.sqrt(x[i]*x[i]+y[i]*y[i]) Math.sqrt Math x[i]*x[i]+y[i]*y[i] x[i]*x[i] x[i] x i x[i] x i y[i]*y[i] y[i] y i y[i] y i d {
			count+=1;
        } count+=1 count 1 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();//点の数
      	int d = sc.nextInt();//距離
        long x[] =new long[n];
        long y[] =new long[n];
      	int count=0;
      
      for(int i=0;i<n;i++){
        x[i]=sc.nextLong();      
        y[i]=sc.nextLong(); 
      }
      
      for(int i=0;i<n;i++){
    	if(Math.sqrt(x[i]*x[i]+y[i]*y[i])<=d){
			count+=1;
        }
      }
      
     System.out.println(count); 
    } 
} public class Main {
 
    public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();//点の数
      	int d = sc.nextInt();//距離
        long x[] =new long[n];
        long y[] =new long[n];
      	int count=0;
      
      for(int i=0;i<n;i++){
        x[i]=sc.nextLong();      
        y[i]=sc.nextLong(); 
      }
      
      for(int i=0;i<n;i++){
    	if(Math.sqrt(x[i]*x[i]+y[i]*y[i])<=d){
			count+=1;
        }
      }
      
     System.out.println(count); 
    } 
} 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();//距離
        long x[] =new long[n];
        long y[] =new long[n];
      	int count=0;
      
      for(int i=0;i<n;i++){
        x[i]=sc.nextLong();      
        y[i]=sc.nextLong(); 
      }
      
      for(int i=0;i<n;i++){
    	if(Math.sqrt(x[i]*x[i]+y[i]*y[i])<=d){
			count+=1;
        }
      }
      
     System.out.println(count); 
    } 
}






