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();
         int[] X = new int[N];
         int[] Y = new int[N];
         int ans = 0;
    
         for(int i = 0 ; i < N ; i++){
                X[i] = sc.nextInt();
                Y[i] = sc.nextInt();
                if(Math.sqrt(Math.pow(X[i],2)+Math.pow(Y[i],2)) <= D){
                    ans++;
                }
         }
         System.out.println(ans);
    }     
} 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();
         int[] X = new int[N];
         int[] Y = new int[N];
         int ans = 0;
    
         for(int i = 0 ; i < N ; i++){
                X[i] = sc.nextInt();
                Y[i] = sc.nextInt();
                if(Math.sqrt(Math.pow(X[i],2)+Math.pow(Y[i],2)) <= D){
                    ans++;
                }
         }
         System.out.println(ans);
    }     
} Main public static void main(String[] args){
         Scanner sc = new Scanner(System.in);
         int N = sc.nextInt();
         int D = sc.nextInt();
         int[] X = new int[N];
         int[] Y = new int[N];
         int ans = 0;
    
         for(int i = 0 ; i < N ; i++){
                X[i] = sc.nextInt();
                Y[i] = sc.nextInt();
                if(Math.sqrt(Math.pow(X[i],2)+Math.pow(Y[i],2)) <= D){
                    ans++;
                }
         }
         System.out.println(ans);
    } main {
         Scanner sc = new Scanner(System.in);
         int N = sc.nextInt();
         int D = sc.nextInt();
         int[] X = new int[N];
         int[] Y = new int[N];
         int ans = 0;
    
         for(int i = 0 ; i < N ; i++){
                X[i] = sc.nextInt();
                Y[i] = sc.nextInt();
                if(Math.sqrt(Math.pow(X[i],2)+Math.pow(Y[i],2)) <= D){
                    ans++;
                }
         }
         System.out.println(ans);
    } 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 int[] X = new int[N]; X new int[N] N int[] Y = new int[N]; Y new int[N] N int ans = 0; ans 0 for(int i = 0 ; i < N ; i++){
                X[i] = sc.nextInt();
                Y[i] = sc.nextInt();
                if(Math.sqrt(Math.pow(X[i],2)+Math.pow(Y[i],2)) <= D){
                    ans++;
                }
         } int i = 0 ; int i = 0 ; i 0 i < N i N i++ i++ i {
                X[i] = sc.nextInt();
                Y[i] = sc.nextInt();
                if(Math.sqrt(Math.pow(X[i],2)+Math.pow(Y[i],2)) <= D){
                    ans++;
                }
         } {
                X[i] = sc.nextInt();
                Y[i] = sc.nextInt();
                if(Math.sqrt(Math.pow(X[i],2)+Math.pow(Y[i],2)) <= D){
                    ans++;
                }
         } X[i] = sc.nextInt() X[i] X i sc.nextInt() sc.nextInt sc Y[i] = sc.nextInt() Y[i] Y i sc.nextInt() sc.nextInt sc if(Math.sqrt(Math.pow(X[i],2)+Math.pow(Y[i],2)) <= D){
                    ans++;
                } Math.sqrt(Math.pow(X[i],2)+Math.pow(Y[i],2)) <= D Math.sqrt(Math.pow(X[i],2)+Math.pow(Y[i],2)) Math.sqrt Math Math.pow(X[i],2)+Math.pow(Y[i],2) Math.pow(X[i],2) Math.pow Math X[i] X i 2 Math.pow(Y[i],2) Math.pow Math Y[i] Y i 2 D {
                    ans++;
                } ans++ ans System.out.println(ans) System.out.println System.out System System.out ans 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();
         int[] X = new int[N];
         int[] Y = new int[N];
         int ans = 0;
    
         for(int i = 0 ; i < N ; i++){
                X[i] = sc.nextInt();
                Y[i] = sc.nextInt();
                if(Math.sqrt(Math.pow(X[i],2)+Math.pow(Y[i],2)) <= D){
                    ans++;
                }
         }
         System.out.println(ans);
    }     
} public class Main {
    public static void main(String[] args){
         Scanner sc = new Scanner(System.in);
         int N = sc.nextInt();
         int D = sc.nextInt();
         int[] X = new int[N];
         int[] Y = new int[N];
         int ans = 0;
    
         for(int i = 0 ; i < N ; i++){
                X[i] = sc.nextInt();
                Y[i] = sc.nextInt();
                if(Math.sqrt(Math.pow(X[i],2)+Math.pow(Y[i],2)) <= D){
                    ans++;
                }
         }
         System.out.println(ans);
    }     
} 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();
         int[] X = new int[N];
         int[] Y = new int[N];
         int ans = 0;
    
         for(int i = 0 ; i < N ; i++){
                X[i] = sc.nextInt();
                Y[i] = sc.nextInt();
                if(Math.sqrt(Math.pow(X[i],2)+Math.pow(Y[i],2)) <= D){
                    ans++;
                }
         }
         System.out.println(ans);
    }     
}
