

import java.util.*;
import java.io.*;

public class Main 

{ 

	 static FastReader sc=new FastReader(); 
	 static double c(long a,long b) {
		 return Math.sqrt((a*a+b*b));
	 }
	  public static void main(String[] args) 
    {
    	int n = i();
        int m = i();
        long A[]=new long[n];
        long B[]=new long[n];
        for(int i=0;i<n;i++) {
        	A[i]=Math.abs(i());
        	B[i]=Math.abs(i());
        }
        int c=0;
        for(int i=0;i<n;i++) {
        	
        	if(c(A[i],B[i])<=m) {
        		c++;
        	}
        }
        System.out.println(c);
		
    }
      	
        	
			
	
	
		
   static void input(int A[]) {
	   for(int i=0;i<A.length;i++) {
		   A[i]=sc.nextInt();
	   }
   }
     static int i() {
    	 return sc.nextInt();
     }
     static String s() {
    	 return sc.next();
     }
     static long l() {
    	 return sc.nextLong();
     }  
        static void shuffleArray(int[] arr){
        int n = arr.length;
        Random rnd = new Random();
        for(int i=0; i<n; ++i){
            int tmp = arr[i];
            int randomPos = i + rnd.nextInt(n-i);
            arr[i] = arr[randomPos];
            arr[randomPos] = tmp;
        }   
}
  
        
        
    static class FastReader 
    { 
        BufferedReader br; 
        StringTokenizer st; 
  
        public FastReader() 
        { 
            br = new BufferedReader(new
                     InputStreamReader(System.in)); 
        } 
  
        String next() 
        { 
            while (st == null || !st.hasMoreElements()) 
            { 
                try
                { 
                    st = new StringTokenizer(br.readLine()); 
                } 
                catch (IOException  e) 
                { 
                    e.printStackTrace(); 
                } 
            } 
            return st.nextToken(); 
        } 
  
        int nextInt() 
        { 
            return Integer.parseInt(next()); 
        } 
  
        long nextLong() 
        { 
            return Long.parseLong(next()); 
        } 
  
        double nextDouble() 
        { 
            return Double.parseDouble(next()); 
        } 
  
        String nextLine() 
        { 
            String str = ""; 
            try
            { 
                str = br.readLine(); 
            } 
            catch (IOException e) 
            { 
                e.printStackTrace(); 
            } 
            return str; 
        } 
    } 
} 
 import java.util.*; util.* java import java.io.*; io.* java public class Main 

{ 

	 static FastReader sc=new FastReader(); 
	 static double c(long a,long b) {
		 return Math.sqrt((a*a+b*b));
	 }
	  public static void main(String[] args) 
    {
    	int n = i();
        int m = i();
        long A[]=new long[n];
        long B[]=new long[n];
        for(int i=0;i<n;i++) {
        	A[i]=Math.abs(i());
        	B[i]=Math.abs(i());
        }
        int c=0;
        for(int i=0;i<n;i++) {
        	
        	if(c(A[i],B[i])<=m) {
        		c++;
        	}
        }
        System.out.println(c);
		
    }
      	
        	
			
	
	
		
   static void input(int A[]) {
	   for(int i=0;i<A.length;i++) {
		   A[i]=sc.nextInt();
	   }
   }
     static int i() {
    	 return sc.nextInt();
     }
     static String s() {
    	 return sc.next();
     }
     static long l() {
    	 return sc.nextLong();
     }  
        static void shuffleArray(int[] arr){
        int n = arr.length;
        Random rnd = new Random();
        for(int i=0; i<n; ++i){
            int tmp = arr[i];
            int randomPos = i + rnd.nextInt(n-i);
            arr[i] = arr[randomPos];
            arr[randomPos] = tmp;
        }   
}
  
        
        
    static class FastReader 
    { 
        BufferedReader br; 
        StringTokenizer st; 
  
        public FastReader() 
        { 
            br = new BufferedReader(new
                     InputStreamReader(System.in)); 
        } 
  
        String next() 
        { 
            while (st == null || !st.hasMoreElements()) 
            { 
                try
                { 
                    st = new StringTokenizer(br.readLine()); 
                } 
                catch (IOException  e) 
                { 
                    e.printStackTrace(); 
                } 
            } 
            return st.nextToken(); 
        } 
  
        int nextInt() 
        { 
            return Integer.parseInt(next()); 
        } 
  
        long nextLong() 
        { 
            return Long.parseLong(next()); 
        } 
  
        double nextDouble() 
        { 
            return Double.parseDouble(next()); 
        } 
  
        String nextLine() 
        { 
            String str = ""; 
            try
            { 
                str = br.readLine(); 
            } 
            catch (IOException e) 
            { 
                e.printStackTrace(); 
            } 
            return str; 
        } 
    } 
} Main static FastReader sc=new FastReader(); sc new FastReader() static double c(long a,long b) {
		 return Math.sqrt((a*a+b*b));
	 } c {
		 return Math.sqrt((a*a+b*b));
	 } return Math.sqrt((a*a+b*b)); Math.sqrt((a*a+b*b)) Math.sqrt Math (a*a+b*b) a*a a a b*b b b long a a long b b public static void main(String[] args) 
    {
    	int n = i();
        int m = i();
        long A[]=new long[n];
        long B[]=new long[n];
        for(int i=0;i<n;i++) {
        	A[i]=Math.abs(i());
        	B[i]=Math.abs(i());
        }
        int c=0;
        for(int i=0;i<n;i++) {
        	
        	if(c(A[i],B[i])<=m) {
        		c++;
        	}
        }
        System.out.println(c);
		
    } main {
    	int n = i();
        int m = i();
        long A[]=new long[n];
        long B[]=new long[n];
        for(int i=0;i<n;i++) {
        	A[i]=Math.abs(i());
        	B[i]=Math.abs(i());
        }
        int c=0;
        for(int i=0;i<n;i++) {
        	
        	if(c(A[i],B[i])<=m) {
        		c++;
        	}
        }
        System.out.println(c);
		
    } int n = i(); n i() i int m = i(); m i() i long A[]=new long[n]; A new long[n] n long B[]=new long[n]; B new long[n] n for(int i=0;i<n;i++) {
        	A[i]=Math.abs(i());
        	B[i]=Math.abs(i());
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
        	A[i]=Math.abs(i());
        	B[i]=Math.abs(i());
        } {
        	A[i]=Math.abs(i());
        	B[i]=Math.abs(i());
        } A[i]=Math.abs(i()) A[i] A i Math.abs(i()) Math.abs Math i() i B[i]=Math.abs(i()) B[i] B i Math.abs(i()) Math.abs Math i() i int c=0; c 0 for(int i=0;i<n;i++) {
        	
        	if(c(A[i],B[i])<=m) {
        		c++;
        	}
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
        	
        	if(c(A[i],B[i])<=m) {
        		c++;
        	}
        } {
        	
        	if(c(A[i],B[i])<=m) {
        		c++;
        	}
        } if(c(A[i],B[i])<=m) {
        		c++;
        	} c(A[i],B[i])<=m c(A[i],B[i]) c A[i] A i B[i] B i m {
        		c++;
        	} c++ c System.out.println(c) System.out.println System.out System System.out c String[] args args static void input(int A[]) {
	   for(int i=0;i<A.length;i++) {
		   A[i]=sc.nextInt();
	   }
   } input {
	   for(int i=0;i<A.length;i++) {
		   A[i]=sc.nextInt();
	   }
   } for(int i=0;i<A.length;i++) {
		   A[i]=sc.nextInt();
	   } int i=0; int i=0; i 0 i<A.length i A.length A A.length i++ i++ i {
		   A[i]=sc.nextInt();
	   } {
		   A[i]=sc.nextInt();
	   } A[i]=sc.nextInt() A[i] A i sc.nextInt() sc.nextInt sc int A[] A static int i() {
    	 return sc.nextInt();
     } i {
    	 return sc.nextInt();
     } return sc.nextInt(); sc.nextInt() sc.nextInt sc static String s() {
    	 return sc.next();
     } s {
    	 return sc.next();
     } return sc.next(); sc.next() sc.next sc static long l() {
    	 return sc.nextLong();
     } l {
    	 return sc.nextLong();
     } return sc.nextLong(); sc.nextLong() sc.nextLong sc static void shuffleArray(int[] arr){
        int n = arr.length;
        Random rnd = new Random();
        for(int i=0; i<n; ++i){
            int tmp = arr[i];
            int randomPos = i + rnd.nextInt(n-i);
            arr[i] = arr[randomPos];
            arr[randomPos] = tmp;
        }   
} shuffleArray {
        int n = arr.length;
        Random rnd = new Random();
        for(int i=0; i<n; ++i){
            int tmp = arr[i];
            int randomPos = i + rnd.nextInt(n-i);
            arr[i] = arr[randomPos];
            arr[randomPos] = tmp;
        }   
} int n = arr.length; n arr.length arr arr.length Random rnd = new Random(); rnd new Random() for(int i=0; i<n; ++i){
            int tmp = arr[i];
            int randomPos = i + rnd.nextInt(n-i);
            arr[i] = arr[randomPos];
            arr[randomPos] = tmp;
        } int i=0; int i=0; i 0 i<n i n ++i ++i i {
            int tmp = arr[i];
            int randomPos = i + rnd.nextInt(n-i);
            arr[i] = arr[randomPos];
            arr[randomPos] = tmp;
        } {
            int tmp = arr[i];
            int randomPos = i + rnd.nextInt(n-i);
            arr[i] = arr[randomPos];
            arr[randomPos] = tmp;
        } int tmp = arr[i]; tmp arr[i] arr i int randomPos = i + rnd.nextInt(n-i); randomPos i + rnd.nextInt(n-i) i rnd.nextInt(n-i) rnd.nextInt rnd n-i n i arr[i] = arr[randomPos] arr[i] arr i arr[randomPos] arr randomPos arr[randomPos] = tmp arr[randomPos] arr randomPos tmp int[] arr arr static class FastReader 
    { 
        BufferedReader br; 
        StringTokenizer st; 
  
        public FastReader() 
        { 
            br = new BufferedReader(new
                     InputStreamReader(System.in)); 
        } 
  
        String next() 
        { 
            while (st == null || !st.hasMoreElements()) 
            { 
                try
                { 
                    st = new StringTokenizer(br.readLine()); 
                } 
                catch (IOException  e) 
                { 
                    e.printStackTrace(); 
                } 
            } 
            return st.nextToken(); 
        } 
  
        int nextInt() 
        { 
            return Integer.parseInt(next()); 
        } 
  
        long nextLong() 
        { 
            return Long.parseLong(next()); 
        } 
  
        double nextDouble() 
        { 
            return Double.parseDouble(next()); 
        } 
  
        String nextLine() 
        { 
            String str = ""; 
            try
            { 
                str = br.readLine(); 
            } 
            catch (IOException e) 
            { 
                e.printStackTrace(); 
            } 
            return str; 
        } 
    } FastReader BufferedReader br; br StringTokenizer st; st public FastReader() 
        { 
            br = new BufferedReader(new
                     InputStreamReader(System.in)); 
        } FastReader { 
            br = new BufferedReader(new
                     InputStreamReader(System.in)); 
        } br = new BufferedReader(new
                     InputStreamReader(System.in)) br new BufferedReader(new
                     InputStreamReader(System.in)) String next() 
        { 
            while (st == null || !st.hasMoreElements()) 
            { 
                try
                { 
                    st = new StringTokenizer(br.readLine()); 
                } 
                catch (IOException  e) 
                { 
                    e.printStackTrace(); 
                } 
            } 
            return st.nextToken(); 
        } next { 
            while (st == null || !st.hasMoreElements()) 
            { 
                try
                { 
                    st = new StringTokenizer(br.readLine()); 
                } 
                catch (IOException  e) 
                { 
                    e.printStackTrace(); 
                } 
            } 
            return st.nextToken(); 
        } while (st == null || !st.hasMoreElements()) 
            { 
                try
                { 
                    st = new StringTokenizer(br.readLine()); 
                } 
                catch (IOException  e) 
                { 
                    e.printStackTrace(); 
                } 
            } st == null || !st.hasMoreElements() st == null st null !st.hasMoreElements() st.hasMoreElements() st.hasMoreElements st { 
                try
                { 
                    st = new StringTokenizer(br.readLine()); 
                } 
                catch (IOException  e) 
                { 
                    e.printStackTrace(); 
                } 
            } try
                { 
                    st = new StringTokenizer(br.readLine()); 
                } 
                catch (IOException  e) 
                { 
                    e.printStackTrace(); 
                } catch (IOException  e) 
                { 
                    e.printStackTrace(); 
                } IOException  e { 
                    e.printStackTrace(); 
                } e.printStackTrace() e.printStackTrace e { 
                    st = new StringTokenizer(br.readLine()); 
                } st = new StringTokenizer(br.readLine()) st new StringTokenizer(br.readLine()) return st.nextToken(); st.nextToken() st.nextToken st int nextInt() 
        { 
            return Integer.parseInt(next()); 
        } nextInt { 
            return Integer.parseInt(next()); 
        } return Integer.parseInt(next()); Integer.parseInt(next()) Integer.parseInt Integer next() next long nextLong() 
        { 
            return Long.parseLong(next()); 
        } nextLong { 
            return Long.parseLong(next()); 
        } return Long.parseLong(next()); Long.parseLong(next()) Long.parseLong Long next() next double nextDouble() 
        { 
            return Double.parseDouble(next()); 
        } nextDouble { 
            return Double.parseDouble(next()); 
        } return Double.parseDouble(next()); Double.parseDouble(next()) Double.parseDouble Double next() next String nextLine() 
        { 
            String str = ""; 
            try
            { 
                str = br.readLine(); 
            } 
            catch (IOException e) 
            { 
                e.printStackTrace(); 
            } 
            return str; 
        } nextLine { 
            String str = ""; 
            try
            { 
                str = br.readLine(); 
            } 
            catch (IOException e) 
            { 
                e.printStackTrace(); 
            } 
            return str; 
        } String str = ""; str "" try
            { 
                str = br.readLine(); 
            } 
            catch (IOException e) 
            { 
                e.printStackTrace(); 
            } catch (IOException e) 
            { 
                e.printStackTrace(); 
            } IOException e { 
                e.printStackTrace(); 
            } e.printStackTrace() e.printStackTrace e { 
                str = br.readLine(); 
            } str = br.readLine() str br.readLine() br.readLine br return str; str public class Main 

{ 

	 static FastReader sc=new FastReader(); 
	 static double c(long a,long b) {
		 return Math.sqrt((a*a+b*b));
	 }
	  public static void main(String[] args) 
    {
    	int n = i();
        int m = i();
        long A[]=new long[n];
        long B[]=new long[n];
        for(int i=0;i<n;i++) {
        	A[i]=Math.abs(i());
        	B[i]=Math.abs(i());
        }
        int c=0;
        for(int i=0;i<n;i++) {
        	
        	if(c(A[i],B[i])<=m) {
        		c++;
        	}
        }
        System.out.println(c);
		
    }
      	
        	
			
	
	
		
   static void input(int A[]) {
	   for(int i=0;i<A.length;i++) {
		   A[i]=sc.nextInt();
	   }
   }
     static int i() {
    	 return sc.nextInt();
     }
     static String s() {
    	 return sc.next();
     }
     static long l() {
    	 return sc.nextLong();
     }  
        static void shuffleArray(int[] arr){
        int n = arr.length;
        Random rnd = new Random();
        for(int i=0; i<n; ++i){
            int tmp = arr[i];
            int randomPos = i + rnd.nextInt(n-i);
            arr[i] = arr[randomPos];
            arr[randomPos] = tmp;
        }   
}
  
        
        
    static class FastReader 
    { 
        BufferedReader br; 
        StringTokenizer st; 
  
        public FastReader() 
        { 
            br = new BufferedReader(new
                     InputStreamReader(System.in)); 
        } 
  
        String next() 
        { 
            while (st == null || !st.hasMoreElements()) 
            { 
                try
                { 
                    st = new StringTokenizer(br.readLine()); 
                } 
                catch (IOException  e) 
                { 
                    e.printStackTrace(); 
                } 
            } 
            return st.nextToken(); 
        } 
  
        int nextInt() 
        { 
            return Integer.parseInt(next()); 
        } 
  
        long nextLong() 
        { 
            return Long.parseLong(next()); 
        } 
  
        double nextDouble() 
        { 
            return Double.parseDouble(next()); 
        } 
  
        String nextLine() 
        { 
            String str = ""; 
            try
            { 
                str = br.readLine(); 
            } 
            catch (IOException e) 
            { 
                e.printStackTrace(); 
            } 
            return str; 
        } 
    } 
} public class Main 

{ 

	 static FastReader sc=new FastReader(); 
	 static double c(long a,long b) {
		 return Math.sqrt((a*a+b*b));
	 }
	  public static void main(String[] args) 
    {
    	int n = i();
        int m = i();
        long A[]=new long[n];
        long B[]=new long[n];
        for(int i=0;i<n;i++) {
        	A[i]=Math.abs(i());
        	B[i]=Math.abs(i());
        }
        int c=0;
        for(int i=0;i<n;i++) {
        	
        	if(c(A[i],B[i])<=m) {
        		c++;
        	}
        }
        System.out.println(c);
		
    }
      	
        	
			
	
	
		
   static void input(int A[]) {
	   for(int i=0;i<A.length;i++) {
		   A[i]=sc.nextInt();
	   }
   }
     static int i() {
    	 return sc.nextInt();
     }
     static String s() {
    	 return sc.next();
     }
     static long l() {
    	 return sc.nextLong();
     }  
        static void shuffleArray(int[] arr){
        int n = arr.length;
        Random rnd = new Random();
        for(int i=0; i<n; ++i){
            int tmp = arr[i];
            int randomPos = i + rnd.nextInt(n-i);
            arr[i] = arr[randomPos];
            arr[randomPos] = tmp;
        }   
}
  
        
        
    static class FastReader 
    { 
        BufferedReader br; 
        StringTokenizer st; 
  
        public FastReader() 
        { 
            br = new BufferedReader(new
                     InputStreamReader(System.in)); 
        } 
  
        String next() 
        { 
            while (st == null || !st.hasMoreElements()) 
            { 
                try
                { 
                    st = new StringTokenizer(br.readLine()); 
                } 
                catch (IOException  e) 
                { 
                    e.printStackTrace(); 
                } 
            } 
            return st.nextToken(); 
        } 
  
        int nextInt() 
        { 
            return Integer.parseInt(next()); 
        } 
  
        long nextLong() 
        { 
            return Long.parseLong(next()); 
        } 
  
        double nextDouble() 
        { 
            return Double.parseDouble(next()); 
        } 
  
        String nextLine() 
        { 
            String str = ""; 
            try
            { 
                str = br.readLine(); 
            } 
            catch (IOException e) 
            { 
                e.printStackTrace(); 
            } 
            return str; 
        } 
    } 
} Main


import java.util.*;
import java.io.*;

public class Main 

{ 

	 static FastReader sc=new FastReader(); 
	 static double c(long a,long b) {
		 return Math.sqrt((a*a+b*b));
	 }
	  public static void main(String[] args) 
    {
    	int n = i();
        int m = i();
        long A[]=new long[n];
        long B[]=new long[n];
        for(int i=0;i<n;i++) {
        	A[i]=Math.abs(i());
        	B[i]=Math.abs(i());
        }
        int c=0;
        for(int i=0;i<n;i++) {
        	
        	if(c(A[i],B[i])<=m) {
        		c++;
        	}
        }
        System.out.println(c);
		
    }
      	
        	
			
	
	
		
   static void input(int A[]) {
	   for(int i=0;i<A.length;i++) {
		   A[i]=sc.nextInt();
	   }
   }
     static int i() {
    	 return sc.nextInt();
     }
     static String s() {
    	 return sc.next();
     }
     static long l() {
    	 return sc.nextLong();
     }  
        static void shuffleArray(int[] arr){
        int n = arr.length;
        Random rnd = new Random();
        for(int i=0; i<n; ++i){
            int tmp = arr[i];
            int randomPos = i + rnd.nextInt(n-i);
            arr[i] = arr[randomPos];
            arr[randomPos] = tmp;
        }   
}
  
        
        
    static class FastReader 
    { 
        BufferedReader br; 
        StringTokenizer st; 
  
        public FastReader() 
        { 
            br = new BufferedReader(new
                     InputStreamReader(System.in)); 
        } 
  
        String next() 
        { 
            while (st == null || !st.hasMoreElements()) 
            { 
                try
                { 
                    st = new StringTokenizer(br.readLine()); 
                } 
                catch (IOException  e) 
                { 
                    e.printStackTrace(); 
                } 
            } 
            return st.nextToken(); 
        } 
  
        int nextInt() 
        { 
            return Integer.parseInt(next()); 
        } 
  
        long nextLong() 
        { 
            return Long.parseLong(next()); 
        } 
  
        double nextDouble() 
        { 
            return Double.parseDouble(next()); 
        } 
  
        String nextLine() 
        { 
            String str = ""; 
            try
            { 
                str = br.readLine(); 
            } 
            catch (IOException e) 
            { 
                e.printStackTrace(); 
            } 
            return str; 
        } 
    } 
} 

