import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int d = sc.nextInt();

        int x[] = new int[n];
        int y[] = new int[n];
        int count = 0;
        for (int i = 0; i < x.length; i++) {
            x[i] = sc.nextInt();
            y[i] = sc.nextInt();

            double xd = Math.pow(x[i], 2);
            double yd = Math.pow(y[i], 2);


            // System.out.println("x:" + x[i] + " y:" + y[i] + " sqrt:" + Math.sqrt(xd + yd));
            if(Math.sqrt(xd + yd) <= d) {
                count++;
            }
        }
        
        System.out.println(count);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int d = sc.nextInt();

        int x[] = new int[n];
        int y[] = new int[n];
        int count = 0;
        for (int i = 0; i < x.length; i++) {
            x[i] = sc.nextInt();
            y[i] = sc.nextInt();

            double xd = Math.pow(x[i], 2);
            double yd = Math.pow(y[i], 2);


            // System.out.println("x:" + x[i] + " y:" + y[i] + " sqrt:" + Math.sqrt(xd + yd));
            if(Math.sqrt(xd + yd) <= d) {
                count++;
            }
        }
        
        System.out.println(count);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int d = sc.nextInt();

        int x[] = new int[n];
        int y[] = new int[n];
        int count = 0;
        for (int i = 0; i < x.length; i++) {
            x[i] = sc.nextInt();
            y[i] = sc.nextInt();

            double xd = Math.pow(x[i], 2);
            double yd = Math.pow(y[i], 2);


            // System.out.println("x:" + x[i] + " y:" + y[i] + " sqrt:" + Math.sqrt(xd + yd));
            if(Math.sqrt(xd + yd) <= d) {
                count++;
            }
        }
        
        System.out.println(count);
    } main {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int d = sc.nextInt();

        int x[] = new int[n];
        int y[] = new int[n];
        int count = 0;
        for (int i = 0; i < x.length; i++) {
            x[i] = sc.nextInt();
            y[i] = sc.nextInt();

            double xd = Math.pow(x[i], 2);
            double yd = Math.pow(y[i], 2);


            // System.out.println("x:" + x[i] + " y:" + y[i] + " sqrt:" + Math.sqrt(xd + yd));
            if(Math.sqrt(xd + yd) <= d) {
                count++;
            }
        }
        
        System.out.println(count);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int d = sc.nextInt(); d sc.nextInt() sc.nextInt sc int x[] = new int[n]; x new int[n] n int y[] = new int[n]; y new int[n] n int count = 0; count 0 for (int i = 0; i < x.length; i++) {
            x[i] = sc.nextInt();
            y[i] = sc.nextInt();

            double xd = Math.pow(x[i], 2);
            double yd = Math.pow(y[i], 2);


            // System.out.println("x:" + x[i] + " y:" + y[i] + " sqrt:" + Math.sqrt(xd + yd));
            if(Math.sqrt(xd + yd) <= d) {
                count++;
            }
        } int i = 0; int i = 0; i 0 i < x.length i x.length x x.length i++ i++ i {
            x[i] = sc.nextInt();
            y[i] = sc.nextInt();

            double xd = Math.pow(x[i], 2);
            double yd = Math.pow(y[i], 2);


            // System.out.println("x:" + x[i] + " y:" + y[i] + " sqrt:" + Math.sqrt(xd + yd));
            if(Math.sqrt(xd + yd) <= d) {
                count++;
            }
        } {
            x[i] = sc.nextInt();
            y[i] = sc.nextInt();

            double xd = Math.pow(x[i], 2);
            double yd = Math.pow(y[i], 2);


            // System.out.println("x:" + x[i] + " y:" + y[i] + " sqrt:" + Math.sqrt(xd + yd));
            if(Math.sqrt(xd + yd) <= d) {
                count++;
            }
        } x[i] = sc.nextInt() x[i] x i sc.nextInt() sc.nextInt sc y[i] = sc.nextInt() y[i] y i sc.nextInt() sc.nextInt sc double xd = Math.pow(x[i], 2); xd Math.pow(x[i], 2) Math.pow Math x[i] x i 2 double yd = Math.pow(y[i], 2); yd Math.pow(y[i], 2) Math.pow Math y[i] y i 2 if(Math.sqrt(xd + yd) <= d) {
                count++;
            } Math.sqrt(xd + yd) <= d Math.sqrt(xd + yd) Math.sqrt Math xd + yd xd yd d {
                count++;
            } count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int d = sc.nextInt();

        int x[] = new int[n];
        int y[] = new int[n];
        int count = 0;
        for (int i = 0; i < x.length; i++) {
            x[i] = sc.nextInt();
            y[i] = sc.nextInt();

            double xd = Math.pow(x[i], 2);
            double yd = Math.pow(y[i], 2);


            // System.out.println("x:" + x[i] + " y:" + y[i] + " sqrt:" + Math.sqrt(xd + yd));
            if(Math.sqrt(xd + yd) <= d) {
                count++;
            }
        }
        
        System.out.println(count);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int d = sc.nextInt();

        int x[] = new int[n];
        int y[] = new int[n];
        int count = 0;
        for (int i = 0; i < x.length; i++) {
            x[i] = sc.nextInt();
            y[i] = sc.nextInt();

            double xd = Math.pow(x[i], 2);
            double yd = Math.pow(y[i], 2);


            // System.out.println("x:" + x[i] + " y:" + y[i] + " sqrt:" + Math.sqrt(xd + yd));
            if(Math.sqrt(xd + yd) <= d) {
                count++;
            }
        }
        
        System.out.println(count);
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int d = sc.nextInt();

        int x[] = new int[n];
        int y[] = new int[n];
        int count = 0;
        for (int i = 0; i < x.length; i++) {
            x[i] = sc.nextInt();
            y[i] = sc.nextInt();

            double xd = Math.pow(x[i], 2);
            double yd = Math.pow(y[i], 2);


            // System.out.println("x:" + x[i] + " y:" + y[i] + " sqrt:" + Math.sqrt(xd + yd));
            if(Math.sqrt(xd + yd) <= d) {
                count++;
            }
        }
        
        System.out.println(count);
    }
}