import java.util.Scanner;

public class Main {
    public static Scanner in = new Scanner(System.in);

    public static void main(String[] args) {
        int points = in.nextInt();
        long dist = in.nextLong();
        dist = dist * dist;

        int answer = 0;
        for (int i = 0; i < points; i++) {
            long p = in.nextLong();
            long q = in.nextLong();
            long d = (p * p) + (q * q);
            if (d <= dist) answer += 1;
        }

        System.out.println(answer);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static Scanner in = new Scanner(System.in);

    public static void main(String[] args) {
        int points = in.nextInt();
        long dist = in.nextLong();
        dist = dist * dist;

        int answer = 0;
        for (int i = 0; i < points; i++) {
            long p = in.nextLong();
            long q = in.nextLong();
            long d = (p * p) + (q * q);
            if (d <= dist) answer += 1;
        }

        System.out.println(answer);
    }
} Main public static Scanner in = new Scanner(System.in); in new Scanner(System.in) public static void main(String[] args) {
        int points = in.nextInt();
        long dist = in.nextLong();
        dist = dist * dist;

        int answer = 0;
        for (int i = 0; i < points; i++) {
            long p = in.nextLong();
            long q = in.nextLong();
            long d = (p * p) + (q * q);
            if (d <= dist) answer += 1;
        }

        System.out.println(answer);
    } main {
        int points = in.nextInt();
        long dist = in.nextLong();
        dist = dist * dist;

        int answer = 0;
        for (int i = 0; i < points; i++) {
            long p = in.nextLong();
            long q = in.nextLong();
            long d = (p * p) + (q * q);
            if (d <= dist) answer += 1;
        }

        System.out.println(answer);
    } int points = in.nextInt(); points in.nextInt() in.nextInt in long dist = in.nextLong(); dist in.nextLong() in.nextLong in dist = dist * dist dist dist * dist dist dist int answer = 0; answer 0 for (int i = 0; i < points; i++) {
            long p = in.nextLong();
            long q = in.nextLong();
            long d = (p * p) + (q * q);
            if (d <= dist) answer += 1;
        } int i = 0; int i = 0; i 0 i < points i points i++ i++ i {
            long p = in.nextLong();
            long q = in.nextLong();
            long d = (p * p) + (q * q);
            if (d <= dist) answer += 1;
        } {
            long p = in.nextLong();
            long q = in.nextLong();
            long d = (p * p) + (q * q);
            if (d <= dist) answer += 1;
        } long p = in.nextLong(); p in.nextLong() in.nextLong in long q = in.nextLong(); q in.nextLong() in.nextLong in long d = (p * p) + (q * q); d (p * p) + (q * q) (p * p) p p (q * q) q q if (d <= dist) answer += 1; d <= dist d dist answer += 1 answer 1 System.out.println(answer) System.out.println System.out System System.out answer String[] args args public class Main {
    public static Scanner in = new Scanner(System.in);

    public static void main(String[] args) {
        int points = in.nextInt();
        long dist = in.nextLong();
        dist = dist * dist;

        int answer = 0;
        for (int i = 0; i < points; i++) {
            long p = in.nextLong();
            long q = in.nextLong();
            long d = (p * p) + (q * q);
            if (d <= dist) answer += 1;
        }

        System.out.println(answer);
    }
} public class Main {
    public static Scanner in = new Scanner(System.in);

    public static void main(String[] args) {
        int points = in.nextInt();
        long dist = in.nextLong();
        dist = dist * dist;

        int answer = 0;
        for (int i = 0; i < points; i++) {
            long p = in.nextLong();
            long q = in.nextLong();
            long d = (p * p) + (q * q);
            if (d <= dist) answer += 1;
        }

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

public class Main {
    public static Scanner in = new Scanner(System.in);

    public static void main(String[] args) {
        int points = in.nextInt();
        long dist = in.nextLong();
        dist = dist * dist;

        int answer = 0;
        for (int i = 0; i < points; i++) {
            long p = in.nextLong();
            long q = in.nextLong();
            long d = (p * p) + (q * q);
            if (d <= dist) answer += 1;
        }

        System.out.println(answer);
    }
}