import java.io.*;
import java.math.*;
import java.util.*;
import java.lang.*;

// import java.text.DecimalFormat; 
// import java.text.DecimalFormatSymbols; 
 
 
// Warning: Printing unwanted or ill-formatted data to output will cause the test cases to fail
 
public class Main {
    
    public static BufferedReader br;
    public static StringTokenizer sto;
    
    public static void main(String args[] ) throws Exception {
        StringBuffer str = new StringBuffer();
        PrintWriter pw=new PrintWriter(System.out);
        br = new BufferedReader(new InputStreamReader(System.in));
    
        int[] in = arrayInt(2);
        int n = in[0];
        long d = in[1];
        int ans=0;
        while(n-->0){
            long[] p = arrayLong(2);
            long di = p[0]*p[0]+p[1]*p[1];
            if(di<=d*d){
                ans++;
            }
        }
        str.append(ans);
        
        pw.println(str.toString());
        
        pw.close();
    }
     
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
    public static int[] arrayInt(int n) throws Exception{
       sto = new StringTokenizer(br.readLine());
       int[] newarray = new int[n];
       for(int i=0;i<n;i++){
           newarray[i] = Integer.parseInt(sto.nextToken());
       }
       return newarray;
    }
    
    public static long[] arrayLong(int n) throws Exception{
       sto = new StringTokenizer(br.readLine());
       long[] newarray = new long[n];
       for(int i=0;i<n;i++){
           newarray[i] = Long.parseLong(sto.nextToken());
       }
       return newarray;
    }
   
   
   public static double nextDouble() throws Exception{
       return Double.parseDouble(br.readLine());
   }
   
   public static long nextLong() throws Exception{
       return Long.parseLong(br.readLine());
   }
   
   
   public static int nextInt() throws Exception{
       return Integer.parseInt(br.readLine());
   }
   
} import java.io.*; io.* java import java.math.*; math.* java import java.util.*; util.* java import java.lang.*; lang.* java public class Main {
    
    public static BufferedReader br;
    public static StringTokenizer sto;
    
    public static void main(String args[] ) throws Exception {
        StringBuffer str = new StringBuffer();
        PrintWriter pw=new PrintWriter(System.out);
        br = new BufferedReader(new InputStreamReader(System.in));
    
        int[] in = arrayInt(2);
        int n = in[0];
        long d = in[1];
        int ans=0;
        while(n-->0){
            long[] p = arrayLong(2);
            long di = p[0]*p[0]+p[1]*p[1];
            if(di<=d*d){
                ans++;
            }
        }
        str.append(ans);
        
        pw.println(str.toString());
        
        pw.close();
    }
     
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
    public static int[] arrayInt(int n) throws Exception{
       sto = new StringTokenizer(br.readLine());
       int[] newarray = new int[n];
       for(int i=0;i<n;i++){
           newarray[i] = Integer.parseInt(sto.nextToken());
       }
       return newarray;
    }
    
    public static long[] arrayLong(int n) throws Exception{
       sto = new StringTokenizer(br.readLine());
       long[] newarray = new long[n];
       for(int i=0;i<n;i++){
           newarray[i] = Long.parseLong(sto.nextToken());
       }
       return newarray;
    }
   
   
   public static double nextDouble() throws Exception{
       return Double.parseDouble(br.readLine());
   }
   
   public static long nextLong() throws Exception{
       return Long.parseLong(br.readLine());
   }
   
   
   public static int nextInt() throws Exception{
       return Integer.parseInt(br.readLine());
   }
   
} Main public static BufferedReader br; br public static StringTokenizer sto; sto public static void main(String args[] ) throws Exception {
        StringBuffer str = new StringBuffer();
        PrintWriter pw=new PrintWriter(System.out);
        br = new BufferedReader(new InputStreamReader(System.in));
    
        int[] in = arrayInt(2);
        int n = in[0];
        long d = in[1];
        int ans=0;
        while(n-->0){
            long[] p = arrayLong(2);
            long di = p[0]*p[0]+p[1]*p[1];
            if(di<=d*d){
                ans++;
            }
        }
        str.append(ans);
        
        pw.println(str.toString());
        
        pw.close();
    } main {
        StringBuffer str = new StringBuffer();
        PrintWriter pw=new PrintWriter(System.out);
        br = new BufferedReader(new InputStreamReader(System.in));
    
        int[] in = arrayInt(2);
        int n = in[0];
        long d = in[1];
        int ans=0;
        while(n-->0){
            long[] p = arrayLong(2);
            long di = p[0]*p[0]+p[1]*p[1];
            if(di<=d*d){
                ans++;
            }
        }
        str.append(ans);
        
        pw.println(str.toString());
        
        pw.close();
    } StringBuffer str = new StringBuffer(); str new StringBuffer() PrintWriter pw=new PrintWriter(System.out); pw new PrintWriter(System.out) br = new BufferedReader(new InputStreamReader(System.in)) br new BufferedReader(new InputStreamReader(System.in)) int[] in = arrayInt(2); in arrayInt(2) arrayInt 2 int n = in[0]; n in[0] in 0 long d = in[1]; d in[1] in 1 int ans=0; ans 0 while(n-->0){
            long[] p = arrayLong(2);
            long di = p[0]*p[0]+p[1]*p[1];
            if(di<=d*d){
                ans++;
            }
        } n-->0 n-- n 0 {
            long[] p = arrayLong(2);
            long di = p[0]*p[0]+p[1]*p[1];
            if(di<=d*d){
                ans++;
            }
        } long[] p = arrayLong(2); p arrayLong(2) arrayLong 2 long di = p[0]*p[0]+p[1]*p[1]; di p[0]*p[0]+p[1]*p[1] p[0]*p[0] p[0] p 0 p[0] p 0 p[1]*p[1] p[1] p 1 p[1] p 1 if(di<=d*d){
                ans++;
            } di<=d*d di d*d d d {
                ans++;
            } ans++ ans str.append(ans) str.append str ans pw.println(str.toString()) pw.println pw str.toString() str.toString str pw.close() pw.close pw String args[] args public static int[] arrayInt(int n) throws Exception{
       sto = new StringTokenizer(br.readLine());
       int[] newarray = new int[n];
       for(int i=0;i<n;i++){
           newarray[i] = Integer.parseInt(sto.nextToken());
       }
       return newarray;
    } arrayInt {
       sto = new StringTokenizer(br.readLine());
       int[] newarray = new int[n];
       for(int i=0;i<n;i++){
           newarray[i] = Integer.parseInt(sto.nextToken());
       }
       return newarray;
    } sto = new StringTokenizer(br.readLine()) sto new StringTokenizer(br.readLine()) int[] newarray = new int[n]; newarray new int[n] n for(int i=0;i<n;i++){
           newarray[i] = Integer.parseInt(sto.nextToken());
       } int i=0; int i=0; i 0 i<n i n i++ i++ i {
           newarray[i] = Integer.parseInt(sto.nextToken());
       } {
           newarray[i] = Integer.parseInt(sto.nextToken());
       } newarray[i] = Integer.parseInt(sto.nextToken()) newarray[i] newarray i Integer.parseInt(sto.nextToken()) Integer.parseInt Integer sto.nextToken() sto.nextToken sto return newarray; newarray int n n public static long[] arrayLong(int n) throws Exception{
       sto = new StringTokenizer(br.readLine());
       long[] newarray = new long[n];
       for(int i=0;i<n;i++){
           newarray[i] = Long.parseLong(sto.nextToken());
       }
       return newarray;
    } arrayLong {
       sto = new StringTokenizer(br.readLine());
       long[] newarray = new long[n];
       for(int i=0;i<n;i++){
           newarray[i] = Long.parseLong(sto.nextToken());
       }
       return newarray;
    } sto = new StringTokenizer(br.readLine()) sto new StringTokenizer(br.readLine()) long[] newarray = new long[n]; newarray new long[n] n for(int i=0;i<n;i++){
           newarray[i] = Long.parseLong(sto.nextToken());
       } int i=0; int i=0; i 0 i<n i n i++ i++ i {
           newarray[i] = Long.parseLong(sto.nextToken());
       } {
           newarray[i] = Long.parseLong(sto.nextToken());
       } newarray[i] = Long.parseLong(sto.nextToken()) newarray[i] newarray i Long.parseLong(sto.nextToken()) Long.parseLong Long sto.nextToken() sto.nextToken sto return newarray; newarray int n n public static double nextDouble() throws Exception{
       return Double.parseDouble(br.readLine());
   } nextDouble {
       return Double.parseDouble(br.readLine());
   } return Double.parseDouble(br.readLine()); Double.parseDouble(br.readLine()) Double.parseDouble Double br.readLine() br.readLine br public static long nextLong() throws Exception{
       return Long.parseLong(br.readLine());
   } nextLong {
       return Long.parseLong(br.readLine());
   } return Long.parseLong(br.readLine()); Long.parseLong(br.readLine()) Long.parseLong Long br.readLine() br.readLine br public static int nextInt() throws Exception{
       return Integer.parseInt(br.readLine());
   } nextInt {
       return Integer.parseInt(br.readLine());
   } return Integer.parseInt(br.readLine()); Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br public class Main {
    
    public static BufferedReader br;
    public static StringTokenizer sto;
    
    public static void main(String args[] ) throws Exception {
        StringBuffer str = new StringBuffer();
        PrintWriter pw=new PrintWriter(System.out);
        br = new BufferedReader(new InputStreamReader(System.in));
    
        int[] in = arrayInt(2);
        int n = in[0];
        long d = in[1];
        int ans=0;
        while(n-->0){
            long[] p = arrayLong(2);
            long di = p[0]*p[0]+p[1]*p[1];
            if(di<=d*d){
                ans++;
            }
        }
        str.append(ans);
        
        pw.println(str.toString());
        
        pw.close();
    }
     
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
    public static int[] arrayInt(int n) throws Exception{
       sto = new StringTokenizer(br.readLine());
       int[] newarray = new int[n];
       for(int i=0;i<n;i++){
           newarray[i] = Integer.parseInt(sto.nextToken());
       }
       return newarray;
    }
    
    public static long[] arrayLong(int n) throws Exception{
       sto = new StringTokenizer(br.readLine());
       long[] newarray = new long[n];
       for(int i=0;i<n;i++){
           newarray[i] = Long.parseLong(sto.nextToken());
       }
       return newarray;
    }
   
   
   public static double nextDouble() throws Exception{
       return Double.parseDouble(br.readLine());
   }
   
   public static long nextLong() throws Exception{
       return Long.parseLong(br.readLine());
   }
   
   
   public static int nextInt() throws Exception{
       return Integer.parseInt(br.readLine());
   }
   
} public class Main {
    
    public static BufferedReader br;
    public static StringTokenizer sto;
    
    public static void main(String args[] ) throws Exception {
        StringBuffer str = new StringBuffer();
        PrintWriter pw=new PrintWriter(System.out);
        br = new BufferedReader(new InputStreamReader(System.in));
    
        int[] in = arrayInt(2);
        int n = in[0];
        long d = in[1];
        int ans=0;
        while(n-->0){
            long[] p = arrayLong(2);
            long di = p[0]*p[0]+p[1]*p[1];
            if(di<=d*d){
                ans++;
            }
        }
        str.append(ans);
        
        pw.println(str.toString());
        
        pw.close();
    }
     
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
    public static int[] arrayInt(int n) throws Exception{
       sto = new StringTokenizer(br.readLine());
       int[] newarray = new int[n];
       for(int i=0;i<n;i++){
           newarray[i] = Integer.parseInt(sto.nextToken());
       }
       return newarray;
    }
    
    public static long[] arrayLong(int n) throws Exception{
       sto = new StringTokenizer(br.readLine());
       long[] newarray = new long[n];
       for(int i=0;i<n;i++){
           newarray[i] = Long.parseLong(sto.nextToken());
       }
       return newarray;
    }
   
   
   public static double nextDouble() throws Exception{
       return Double.parseDouble(br.readLine());
   }
   
   public static long nextLong() throws Exception{
       return Long.parseLong(br.readLine());
   }
   
   
   public static int nextInt() throws Exception{
       return Integer.parseInt(br.readLine());
   }
   
} Main
import java.io.*;
import java.math.*;
import java.util.*;
import java.lang.*;

// import java.text.DecimalFormat; 
// import java.text.DecimalFormatSymbols; 
 
 
// Warning: Printing unwanted or ill-formatted data to output will cause the test cases to fail
 
public class Main {
    
    public static BufferedReader br;
    public static StringTokenizer sto;
    
    public static void main(String args[] ) throws Exception {
        StringBuffer str = new StringBuffer();
        PrintWriter pw=new PrintWriter(System.out);
        br = new BufferedReader(new InputStreamReader(System.in));
    
        int[] in = arrayInt(2);
        int n = in[0];
        long d = in[1];
        int ans=0;
        while(n-->0){
            long[] p = arrayLong(2);
            long di = p[0]*p[0]+p[1]*p[1];
            if(di<=d*d){
                ans++;
            }
        }
        str.append(ans);
        
        pw.println(str.toString());
        
        pw.close();
    }
     
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
    public static int[] arrayInt(int n) throws Exception{
       sto = new StringTokenizer(br.readLine());
       int[] newarray = new int[n];
       for(int i=0;i<n;i++){
           newarray[i] = Integer.parseInt(sto.nextToken());
       }
       return newarray;
    }
    
    public static long[] arrayLong(int n) throws Exception{
       sto = new StringTokenizer(br.readLine());
       long[] newarray = new long[n];
       for(int i=0;i<n;i++){
           newarray[i] = Long.parseLong(sto.nextToken());
       }
       return newarray;
    }
   
   
   public static double nextDouble() throws Exception{
       return Double.parseDouble(br.readLine());
   }
   
   public static long nextLong() throws Exception{
       return Long.parseLong(br.readLine());
   }
   
   
   public static int nextInt() throws Exception{
       return Integer.parseInt(br.readLine());
   }
   
}