import java.io.*;
import java.util.*;

import static java.lang.Double.*;
import static java.lang.Math.sqrt;

public class Main {
    static PrintWriter prnt = new PrintWriter(System.out);
    static StringTokenizer st;
    static BufferedReader read;

    static void numberOfPoints() throws IOException {
        read = new BufferedReader(new InputStreamReader(System.in));
        st = new StringTokenizer(read.readLine());

        double N = parseDouble(st.nextToken());
        double D = parseDouble(st.nextToken());

        int countPoint = 0;
        for (int i = 0; i < N; i++) {
            st = new StringTokenizer(read.readLine());
            double x1 = parseDouble(st.nextToken());
            double x2 = parseDouble(st.nextToken());

            double d = sqrt((x1 * x1) + (x2 * x2));

            if (D >= d) {
                countPoint++;
            }
        }
        prnt.println(countPoint);
    }

    public static void main(String[] args) throws IOException {
        numberOfPoints();
        prnt.close();
    }
} import java.io.*; io.* java import java.util.*; util.* java import static java.lang.Double.*; import static java.lang.Double.*; import static java.lang.Double.*; import static java.lang.Math.sqrt; import static java.lang.Math.sqrt; import static java.lang.Math.sqrt; public class Main {
    static PrintWriter prnt = new PrintWriter(System.out);
    static StringTokenizer st;
    static BufferedReader read;

    static void numberOfPoints() throws IOException {
        read = new BufferedReader(new InputStreamReader(System.in));
        st = new StringTokenizer(read.readLine());

        double N = parseDouble(st.nextToken());
        double D = parseDouble(st.nextToken());

        int countPoint = 0;
        for (int i = 0; i < N; i++) {
            st = new StringTokenizer(read.readLine());
            double x1 = parseDouble(st.nextToken());
            double x2 = parseDouble(st.nextToken());

            double d = sqrt((x1 * x1) + (x2 * x2));

            if (D >= d) {
                countPoint++;
            }
        }
        prnt.println(countPoint);
    }

    public static void main(String[] args) throws IOException {
        numberOfPoints();
        prnt.close();
    }
} Main static PrintWriter prnt = new PrintWriter(System.out); prnt new PrintWriter(System.out) static StringTokenizer st; st static BufferedReader read; read static void numberOfPoints() throws IOException {
        read = new BufferedReader(new InputStreamReader(System.in));
        st = new StringTokenizer(read.readLine());

        double N = parseDouble(st.nextToken());
        double D = parseDouble(st.nextToken());

        int countPoint = 0;
        for (int i = 0; i < N; i++) {
            st = new StringTokenizer(read.readLine());
            double x1 = parseDouble(st.nextToken());
            double x2 = parseDouble(st.nextToken());

            double d = sqrt((x1 * x1) + (x2 * x2));

            if (D >= d) {
                countPoint++;
            }
        }
        prnt.println(countPoint);
    } numberOfPoints {
        read = new BufferedReader(new InputStreamReader(System.in));
        st = new StringTokenizer(read.readLine());

        double N = parseDouble(st.nextToken());
        double D = parseDouble(st.nextToken());

        int countPoint = 0;
        for (int i = 0; i < N; i++) {
            st = new StringTokenizer(read.readLine());
            double x1 = parseDouble(st.nextToken());
            double x2 = parseDouble(st.nextToken());

            double d = sqrt((x1 * x1) + (x2 * x2));

            if (D >= d) {
                countPoint++;
            }
        }
        prnt.println(countPoint);
    } read = new BufferedReader(new InputStreamReader(System.in)) read new BufferedReader(new InputStreamReader(System.in)) st = new StringTokenizer(read.readLine()) st new StringTokenizer(read.readLine()) double N = parseDouble(st.nextToken()); N parseDouble(st.nextToken()) parseDouble st.nextToken() st.nextToken st double D = parseDouble(st.nextToken()); D parseDouble(st.nextToken()) parseDouble st.nextToken() st.nextToken st int countPoint = 0; countPoint 0 for (int i = 0; i < N; i++) {
            st = new StringTokenizer(read.readLine());
            double x1 = parseDouble(st.nextToken());
            double x2 = parseDouble(st.nextToken());

            double d = sqrt((x1 * x1) + (x2 * x2));

            if (D >= d) {
                countPoint++;
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            st = new StringTokenizer(read.readLine());
            double x1 = parseDouble(st.nextToken());
            double x2 = parseDouble(st.nextToken());

            double d = sqrt((x1 * x1) + (x2 * x2));

            if (D >= d) {
                countPoint++;
            }
        } {
            st = new StringTokenizer(read.readLine());
            double x1 = parseDouble(st.nextToken());
            double x2 = parseDouble(st.nextToken());

            double d = sqrt((x1 * x1) + (x2 * x2));

            if (D >= d) {
                countPoint++;
            }
        } st = new StringTokenizer(read.readLine()) st new StringTokenizer(read.readLine()) double x1 = parseDouble(st.nextToken()); x1 parseDouble(st.nextToken()) parseDouble st.nextToken() st.nextToken st double x2 = parseDouble(st.nextToken()); x2 parseDouble(st.nextToken()) parseDouble st.nextToken() st.nextToken st double d = sqrt((x1 * x1) + (x2 * x2)); d sqrt((x1 * x1) + (x2 * x2)) sqrt (x1 * x1) + (x2 * x2) (x1 * x1) x1 x1 (x2 * x2) x2 x2 if (D >= d) {
                countPoint++;
            } D >= d D d {
                countPoint++;
            } countPoint++ countPoint prnt.println(countPoint) prnt.println prnt countPoint public static void main(String[] args) throws IOException {
        numberOfPoints();
        prnt.close();
    } main {
        numberOfPoints();
        prnt.close();
    } numberOfPoints() numberOfPoints prnt.close() prnt.close prnt String[] args args public class Main {
    static PrintWriter prnt = new PrintWriter(System.out);
    static StringTokenizer st;
    static BufferedReader read;

    static void numberOfPoints() throws IOException {
        read = new BufferedReader(new InputStreamReader(System.in));
        st = new StringTokenizer(read.readLine());

        double N = parseDouble(st.nextToken());
        double D = parseDouble(st.nextToken());

        int countPoint = 0;
        for (int i = 0; i < N; i++) {
            st = new StringTokenizer(read.readLine());
            double x1 = parseDouble(st.nextToken());
            double x2 = parseDouble(st.nextToken());

            double d = sqrt((x1 * x1) + (x2 * x2));

            if (D >= d) {
                countPoint++;
            }
        }
        prnt.println(countPoint);
    }

    public static void main(String[] args) throws IOException {
        numberOfPoints();
        prnt.close();
    }
} public class Main {
    static PrintWriter prnt = new PrintWriter(System.out);
    static StringTokenizer st;
    static BufferedReader read;

    static void numberOfPoints() throws IOException {
        read = new BufferedReader(new InputStreamReader(System.in));
        st = new StringTokenizer(read.readLine());

        double N = parseDouble(st.nextToken());
        double D = parseDouble(st.nextToken());

        int countPoint = 0;
        for (int i = 0; i < N; i++) {
            st = new StringTokenizer(read.readLine());
            double x1 = parseDouble(st.nextToken());
            double x2 = parseDouble(st.nextToken());

            double d = sqrt((x1 * x1) + (x2 * x2));

            if (D >= d) {
                countPoint++;
            }
        }
        prnt.println(countPoint);
    }

    public static void main(String[] args) throws IOException {
        numberOfPoints();
        prnt.close();
    }
} Main
import java.io.*;
import java.util.*;

import static java.lang.Double.*;
import static java.lang.Math.sqrt;

public class Main {
    static PrintWriter prnt = new PrintWriter(System.out);
    static StringTokenizer st;
    static BufferedReader read;

    static void numberOfPoints() throws IOException {
        read = new BufferedReader(new InputStreamReader(System.in));
        st = new StringTokenizer(read.readLine());

        double N = parseDouble(st.nextToken());
        double D = parseDouble(st.nextToken());

        int countPoint = 0;
        for (int i = 0; i < N; i++) {
            st = new StringTokenizer(read.readLine());
            double x1 = parseDouble(st.nextToken());
            double x2 = parseDouble(st.nextToken());

            double d = sqrt((x1 * x1) + (x2 * x2));

            if (D >= d) {
                countPoint++;
            }
        }
        prnt.println(countPoint);
    }

    public static void main(String[] args) throws IOException {
        numberOfPoints();
        prnt.close();
    }
}