import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        double N = scanner.nextInt(), D = scanner.nextInt();

        int counter = 0;
        for (int i = 1; i <= N; i++) {
            double x = scanner.nextInt(), y = scanner.nextInt();
            double dist = Math.sqrt(x * x + y * y);
            if (dist <= D) {
                counter++;

            }

        }
        System.out.println(counter);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        double N = scanner.nextInt(), D = scanner.nextInt();

        int counter = 0;
        for (int i = 1; i <= N; i++) {
            double x = scanner.nextInt(), y = scanner.nextInt();
            double dist = Math.sqrt(x * x + y * y);
            if (dist <= D) {
                counter++;

            }

        }
        System.out.println(counter);
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        double N = scanner.nextInt(), D = scanner.nextInt();

        int counter = 0;
        for (int i = 1; i <= N; i++) {
            double x = scanner.nextInt(), y = scanner.nextInt();
            double dist = Math.sqrt(x * x + y * y);
            if (dist <= D) {
                counter++;

            }

        }
        System.out.println(counter);
    } main {
        Scanner scanner = new Scanner(System.in);
        double N = scanner.nextInt(), D = scanner.nextInt();

        int counter = 0;
        for (int i = 1; i <= N; i++) {
            double x = scanner.nextInt(), y = scanner.nextInt();
            double dist = Math.sqrt(x * x + y * y);
            if (dist <= D) {
                counter++;

            }

        }
        System.out.println(counter);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) double N = scanner.nextInt() N scanner.nextInt() scanner.nextInt scanner D = scanner.nextInt(); D scanner.nextInt() scanner.nextInt scanner int counter = 0; counter 0 for (int i = 1; i <= N; i++) {
            double x = scanner.nextInt(), y = scanner.nextInt();
            double dist = Math.sqrt(x * x + y * y);
            if (dist <= D) {
                counter++;

            }

        } int i = 1; int i = 1; i 1 i <= N i N i++ i++ i {
            double x = scanner.nextInt(), y = scanner.nextInt();
            double dist = Math.sqrt(x * x + y * y);
            if (dist <= D) {
                counter++;

            }

        } {
            double x = scanner.nextInt(), y = scanner.nextInt();
            double dist = Math.sqrt(x * x + y * y);
            if (dist <= D) {
                counter++;

            }

        } double x = scanner.nextInt() x scanner.nextInt() scanner.nextInt scanner y = scanner.nextInt(); y scanner.nextInt() scanner.nextInt scanner double dist = Math.sqrt(x * x + y * y); dist Math.sqrt(x * x + y * y) Math.sqrt Math x * x + y * y x * x x x y * y y y if (dist <= D) {
                counter++;

            } dist <= D dist D {
                counter++;

            } counter++ counter System.out.println(counter) System.out.println System.out System System.out counter String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        double N = scanner.nextInt(), D = scanner.nextInt();

        int counter = 0;
        for (int i = 1; i <= N; i++) {
            double x = scanner.nextInt(), y = scanner.nextInt();
            double dist = Math.sqrt(x * x + y * y);
            if (dist <= D) {
                counter++;

            }

        }
        System.out.println(counter);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        double N = scanner.nextInt(), D = scanner.nextInt();

        int counter = 0;
        for (int i = 1; i <= N; i++) {
            double x = scanner.nextInt(), y = scanner.nextInt();
            double dist = Math.sqrt(x * x + y * y);
            if (dist <= D) {
                counter++;

            }

        }
        System.out.println(counter);
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        double N = scanner.nextInt(), D = scanner.nextInt();

        int counter = 0;
        for (int i = 1; i <= N; i++) {
            double x = scanner.nextInt(), y = scanner.nextInt();
            double dist = Math.sqrt(x * x + y * y);
            if (dist <= D) {
                counter++;

            }

        }
        System.out.println(counter);
    }
}
