import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        double n = in.nextDouble();
        double d = in.nextDouble();
        int ans = 0;
        while(n-->0){
            double x = in.nextDouble();
            double y = in.nextDouble();
            if (Math.sqrt(x * x + y * y) <= d)
                ans++;
        }
        System.out.println(ans);
        in.close();
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        double n = in.nextDouble();
        double d = in.nextDouble();
        int ans = 0;
        while(n-->0){
            double x = in.nextDouble();
            double y = in.nextDouble();
            if (Math.sqrt(x * x + y * y) <= d)
                ans++;
        }
        System.out.println(ans);
        in.close();
    }
} Main public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        double n = in.nextDouble();
        double d = in.nextDouble();
        int ans = 0;
        while(n-->0){
            double x = in.nextDouble();
            double y = in.nextDouble();
            if (Math.sqrt(x * x + y * y) <= d)
                ans++;
        }
        System.out.println(ans);
        in.close();
    } main {
        Scanner in = new Scanner(System.in);
        double n = in.nextDouble();
        double d = in.nextDouble();
        int ans = 0;
        while(n-->0){
            double x = in.nextDouble();
            double y = in.nextDouble();
            if (Math.sqrt(x * x + y * y) <= d)
                ans++;
        }
        System.out.println(ans);
        in.close();
    } Scanner in = new Scanner(System.in); in new Scanner(System.in) double n = in.nextDouble(); n in.nextDouble() in.nextDouble in double d = in.nextDouble(); d in.nextDouble() in.nextDouble in int ans = 0; ans 0 while(n-->0){
            double x = in.nextDouble();
            double y = in.nextDouble();
            if (Math.sqrt(x * x + y * y) <= d)
                ans++;
        } n-->0 n-- n 0 {
            double x = in.nextDouble();
            double y = in.nextDouble();
            if (Math.sqrt(x * x + y * y) <= d)
                ans++;
        } double x = in.nextDouble(); x in.nextDouble() in.nextDouble in double y = in.nextDouble(); y in.nextDouble() in.nextDouble in if (Math.sqrt(x * x + y * y) <= d)
                ans++; Math.sqrt(x * x + y * y) <= d Math.sqrt(x * x + y * y) Math.sqrt Math x * x + y * y x * x x x y * y y y d ans++ ans System.out.println(ans) System.out.println System.out System System.out ans in.close() in.close in String[] args args public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        double n = in.nextDouble();
        double d = in.nextDouble();
        int ans = 0;
        while(n-->0){
            double x = in.nextDouble();
            double y = in.nextDouble();
            if (Math.sqrt(x * x + y * y) <= d)
                ans++;
        }
        System.out.println(ans);
        in.close();
    }
} public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        double n = in.nextDouble();
        double d = in.nextDouble();
        int ans = 0;
        while(n-->0){
            double x = in.nextDouble();
            double y = in.nextDouble();
            if (Math.sqrt(x * x + y * y) <= d)
                ans++;
        }
        System.out.println(ans);
        in.close();
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        double n = in.nextDouble();
        double d = in.nextDouble();
        int ans = 0;
        while(n-->0){
            double x = in.nextDouble();
            double y = in.nextDouble();
            if (Math.sqrt(x * x + y * y) <= d)
                ans++;
        }
        System.out.println(ans);
        in.close();
    }
}