import java.io.*;

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        String[] data = in.readLine().split(" ");
        int n = Integer.parseInt(data[0]);
        long d = Integer.parseInt(data[1]);
        long dd = d * d;
        int ans = 0;
        for (int i = 0; i < n; i++) {
            data = in.readLine().split(" ");
            long x = Integer.parseInt(data[0]);
            long y = Integer.parseInt(data[1]);
            if (x*x + y*y <= dd) {
                ans++;
            }
        }
        System.out.println(ans);
    }
} import java.io.*; io.* java public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        String[] data = in.readLine().split(" ");
        int n = Integer.parseInt(data[0]);
        long d = Integer.parseInt(data[1]);
        long dd = d * d;
        int ans = 0;
        for (int i = 0; i < n; i++) {
            data = in.readLine().split(" ");
            long x = Integer.parseInt(data[0]);
            long y = Integer.parseInt(data[1]);
            if (x*x + y*y <= dd) {
                ans++;
            }
        }
        System.out.println(ans);
    }
} Main public static void main(String[] args) throws IOException {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        String[] data = in.readLine().split(" ");
        int n = Integer.parseInt(data[0]);
        long d = Integer.parseInt(data[1]);
        long dd = d * d;
        int ans = 0;
        for (int i = 0; i < n; i++) {
            data = in.readLine().split(" ");
            long x = Integer.parseInt(data[0]);
            long y = Integer.parseInt(data[1]);
            if (x*x + y*y <= dd) {
                ans++;
            }
        }
        System.out.println(ans);
    } main {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        String[] data = in.readLine().split(" ");
        int n = Integer.parseInt(data[0]);
        long d = Integer.parseInt(data[1]);
        long dd = d * d;
        int ans = 0;
        for (int i = 0; i < n; i++) {
            data = in.readLine().split(" ");
            long x = Integer.parseInt(data[0]);
            long y = Integer.parseInt(data[1]);
            if (x*x + y*y <= dd) {
                ans++;
            }
        }
        System.out.println(ans);
    } BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) String[] data = in.readLine().split(" "); data in.readLine().split(" ") in.readLine().split in.readLine() in.readLine in " " int n = Integer.parseInt(data[0]); n Integer.parseInt(data[0]) Integer.parseInt Integer data[0] data 0 long d = Integer.parseInt(data[1]); d Integer.parseInt(data[1]) Integer.parseInt Integer data[1] data 1 long dd = d * d; dd d * d d d int ans = 0; ans 0 for (int i = 0; i < n; i++) {
            data = in.readLine().split(" ");
            long x = Integer.parseInt(data[0]);
            long y = Integer.parseInt(data[1]);
            if (x*x + y*y <= dd) {
                ans++;
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            data = in.readLine().split(" ");
            long x = Integer.parseInt(data[0]);
            long y = Integer.parseInt(data[1]);
            if (x*x + y*y <= dd) {
                ans++;
            }
        } {
            data = in.readLine().split(" ");
            long x = Integer.parseInt(data[0]);
            long y = Integer.parseInt(data[1]);
            if (x*x + y*y <= dd) {
                ans++;
            }
        } data = in.readLine().split(" ") data in.readLine().split(" ") in.readLine().split in.readLine() in.readLine in " " long x = Integer.parseInt(data[0]); x Integer.parseInt(data[0]) Integer.parseInt Integer data[0] data 0 long y = Integer.parseInt(data[1]); y Integer.parseInt(data[1]) Integer.parseInt Integer data[1] data 1 if (x*x + y*y <= dd) {
                ans++;
            } x*x + y*y <= dd x*x + y*y x*x x x y*y y y dd {
                ans++;
            } ans++ ans System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        String[] data = in.readLine().split(" ");
        int n = Integer.parseInt(data[0]);
        long d = Integer.parseInt(data[1]);
        long dd = d * d;
        int ans = 0;
        for (int i = 0; i < n; i++) {
            data = in.readLine().split(" ");
            long x = Integer.parseInt(data[0]);
            long y = Integer.parseInt(data[1]);
            if (x*x + y*y <= dd) {
                ans++;
            }
        }
        System.out.println(ans);
    }
} public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        String[] data = in.readLine().split(" ");
        int n = Integer.parseInt(data[0]);
        long d = Integer.parseInt(data[1]);
        long dd = d * d;
        int ans = 0;
        for (int i = 0; i < n; i++) {
            data = in.readLine().split(" ");
            long x = Integer.parseInt(data[0]);
            long y = Integer.parseInt(data[1]);
            if (x*x + y*y <= dd) {
                ans++;
            }
        }
        System.out.println(ans);
    }
} Main
import java.io.*;

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        String[] data = in.readLine().split(" ");
        int n = Integer.parseInt(data[0]);
        long d = Integer.parseInt(data[1]);
        long dd = d * d;
        int ans = 0;
        for (int i = 0; i < n; i++) {
            data = in.readLine().split(" ");
            long x = Integer.parseInt(data[0]);
            long y = Integer.parseInt(data[1]);
            if (x*x + y*y <= dd) {
                ans++;
            }
        }
        System.out.println(ans);
    }
}