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 result = 0;

        for (int i = 0; i < N; i++) {
            int X = sc.nextInt();
            int Y = sc.nextInt();

            double calcResult = Math.sqrt(Math.pow(X, 2) + Math.pow(Y, 2));
            if (calcResult <= D) {
                result += 1;
            }
        }
        
        System.out.println(result);
        sc.close();
    }
} 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 result = 0;

        for (int i = 0; i < N; i++) {
            int X = sc.nextInt();
            int Y = sc.nextInt();

            double calcResult = Math.sqrt(Math.pow(X, 2) + Math.pow(Y, 2));
            if (calcResult <= D) {
                result += 1;
            }
        }
        
        System.out.println(result);
        sc.close();
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int D = sc.nextInt();

        int result = 0;

        for (int i = 0; i < N; i++) {
            int X = sc.nextInt();
            int Y = sc.nextInt();

            double calcResult = Math.sqrt(Math.pow(X, 2) + Math.pow(Y, 2));
            if (calcResult <= D) {
                result += 1;
            }
        }
        
        System.out.println(result);
        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int D = sc.nextInt();

        int result = 0;

        for (int i = 0; i < N; i++) {
            int X = sc.nextInt();
            int Y = sc.nextInt();

            double calcResult = Math.sqrt(Math.pow(X, 2) + Math.pow(Y, 2));
            if (calcResult <= D) {
                result += 1;
            }
        }
        
        System.out.println(result);
        sc.close();
    } 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 result = 0; result 0 for (int i = 0; i < N; i++) {
            int X = sc.nextInt();
            int Y = sc.nextInt();

            double calcResult = Math.sqrt(Math.pow(X, 2) + Math.pow(Y, 2));
            if (calcResult <= D) {
                result += 1;
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            int X = sc.nextInt();
            int Y = sc.nextInt();

            double calcResult = Math.sqrt(Math.pow(X, 2) + Math.pow(Y, 2));
            if (calcResult <= D) {
                result += 1;
            }
        } {
            int X = sc.nextInt();
            int Y = sc.nextInt();

            double calcResult = Math.sqrt(Math.pow(X, 2) + Math.pow(Y, 2));
            if (calcResult <= D) {
                result += 1;
            }
        } int X = sc.nextInt(); X sc.nextInt() sc.nextInt sc int Y = sc.nextInt(); Y sc.nextInt() sc.nextInt sc double calcResult = Math.sqrt(Math.pow(X, 2) + Math.pow(Y, 2)); calcResult Math.sqrt(Math.pow(X, 2) + Math.pow(Y, 2)) Math.sqrt Math Math.pow(X, 2) + Math.pow(Y, 2) Math.pow(X, 2) Math.pow Math X 2 Math.pow(Y, 2) Math.pow Math Y 2 if (calcResult <= D) {
                result += 1;
            } calcResult <= D calcResult D {
                result += 1;
            } result += 1 result 1 System.out.println(result) System.out.println System.out System System.out result sc.close() sc.close sc 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 result = 0;

        for (int i = 0; i < N; i++) {
            int X = sc.nextInt();
            int Y = sc.nextInt();

            double calcResult = Math.sqrt(Math.pow(X, 2) + Math.pow(Y, 2));
            if (calcResult <= D) {
                result += 1;
            }
        }
        
        System.out.println(result);
        sc.close();
    }
} public class Main {
    
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int D = sc.nextInt();

        int result = 0;

        for (int i = 0; i < N; i++) {
            int X = sc.nextInt();
            int Y = sc.nextInt();

            double calcResult = Math.sqrt(Math.pow(X, 2) + Math.pow(Y, 2));
            if (calcResult <= D) {
                result += 1;
            }
        }
        
        System.out.println(result);
        sc.close();
    }
} 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 result = 0;

        for (int i = 0; i < N; i++) {
            int X = sc.nextInt();
            int Y = sc.nextInt();

            double calcResult = Math.sqrt(Math.pow(X, 2) + Math.pow(Y, 2));
            if (calcResult <= D) {
                result += 1;
            }
        }
        
        System.out.println(result);
        sc.close();
    }
}