import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int c = 0;
        int N = sc.nextInt();
        int D = sc.nextInt();
        double[] X = new double[N];
        double[] Y = new double[N];
        double[] X2 = new double[N];
        double[] Y2 = new double[N];
        double[] K = new double[N];
        for (int i = 0; i < N; i++) {
            X[i] = sc.nextDouble();
            Y[i] = sc.nextDouble();
            X2[i] = X[i]*X[i];
            Y2[i] = Y[i]*Y[i];
            K[i] = Math.sqrt(X2[i] + Y2[i]);
            if (K[i] <= D) {
                c = c + 1;
            } else {
                c = c;
            }
        }
        System.out.println(c);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int c = 0;
        int N = sc.nextInt();
        int D = sc.nextInt();
        double[] X = new double[N];
        double[] Y = new double[N];
        double[] X2 = new double[N];
        double[] Y2 = new double[N];
        double[] K = new double[N];
        for (int i = 0; i < N; i++) {
            X[i] = sc.nextDouble();
            Y[i] = sc.nextDouble();
            X2[i] = X[i]*X[i];
            Y2[i] = Y[i]*Y[i];
            K[i] = Math.sqrt(X2[i] + Y2[i]);
            if (K[i] <= D) {
                c = c + 1;
            } else {
                c = c;
            }
        }
        System.out.println(c);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int c = 0;
        int N = sc.nextInt();
        int D = sc.nextInt();
        double[] X = new double[N];
        double[] Y = new double[N];
        double[] X2 = new double[N];
        double[] Y2 = new double[N];
        double[] K = new double[N];
        for (int i = 0; i < N; i++) {
            X[i] = sc.nextDouble();
            Y[i] = sc.nextDouble();
            X2[i] = X[i]*X[i];
            Y2[i] = Y[i]*Y[i];
            K[i] = Math.sqrt(X2[i] + Y2[i]);
            if (K[i] <= D) {
                c = c + 1;
            } else {
                c = c;
            }
        }
        System.out.println(c);
    } main {
        Scanner sc = new Scanner(System.in);
        int c = 0;
        int N = sc.nextInt();
        int D = sc.nextInt();
        double[] X = new double[N];
        double[] Y = new double[N];
        double[] X2 = new double[N];
        double[] Y2 = new double[N];
        double[] K = new double[N];
        for (int i = 0; i < N; i++) {
            X[i] = sc.nextDouble();
            Y[i] = sc.nextDouble();
            X2[i] = X[i]*X[i];
            Y2[i] = Y[i]*Y[i];
            K[i] = Math.sqrt(X2[i] + Y2[i]);
            if (K[i] <= D) {
                c = c + 1;
            } else {
                c = c;
            }
        }
        System.out.println(c);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int c = 0; c 0 int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int D = sc.nextInt(); D sc.nextInt() sc.nextInt sc double[] X = new double[N]; X new double[N] N double[] Y = new double[N]; Y new double[N] N double[] X2 = new double[N]; X2 new double[N] N double[] Y2 = new double[N]; Y2 new double[N] N double[] K = new double[N]; K new double[N] N for (int i = 0; i < N; i++) {
            X[i] = sc.nextDouble();
            Y[i] = sc.nextDouble();
            X2[i] = X[i]*X[i];
            Y2[i] = Y[i]*Y[i];
            K[i] = Math.sqrt(X2[i] + Y2[i]);
            if (K[i] <= D) {
                c = c + 1;
            } else {
                c = c;
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            X[i] = sc.nextDouble();
            Y[i] = sc.nextDouble();
            X2[i] = X[i]*X[i];
            Y2[i] = Y[i]*Y[i];
            K[i] = Math.sqrt(X2[i] + Y2[i]);
            if (K[i] <= D) {
                c = c + 1;
            } else {
                c = c;
            }
        } {
            X[i] = sc.nextDouble();
            Y[i] = sc.nextDouble();
            X2[i] = X[i]*X[i];
            Y2[i] = Y[i]*Y[i];
            K[i] = Math.sqrt(X2[i] + Y2[i]);
            if (K[i] <= D) {
                c = c + 1;
            } else {
                c = c;
            }
        } X[i] = sc.nextDouble() X[i] X i sc.nextDouble() sc.nextDouble sc Y[i] = sc.nextDouble() Y[i] Y i sc.nextDouble() sc.nextDouble sc X2[i] = X[i]*X[i] X2[i] X2 i X[i]*X[i] X[i] X i X[i] X i Y2[i] = Y[i]*Y[i] Y2[i] Y2 i Y[i]*Y[i] Y[i] Y i Y[i] Y i K[i] = Math.sqrt(X2[i] + Y2[i]) K[i] K i Math.sqrt(X2[i] + Y2[i]) Math.sqrt Math X2[i] + Y2[i] X2[i] X2 i Y2[i] Y2 i if (K[i] <= D) {
                c = c + 1;
            } else {
                c = c;
            } K[i] <= D K[i] K i D {
                c = c + 1;
            } c = c + 1 c c + 1 c 1 {
                c = c;
            } c = c c c System.out.println(c) System.out.println System.out System System.out c String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int c = 0;
        int N = sc.nextInt();
        int D = sc.nextInt();
        double[] X = new double[N];
        double[] Y = new double[N];
        double[] X2 = new double[N];
        double[] Y2 = new double[N];
        double[] K = new double[N];
        for (int i = 0; i < N; i++) {
            X[i] = sc.nextDouble();
            Y[i] = sc.nextDouble();
            X2[i] = X[i]*X[i];
            Y2[i] = Y[i]*Y[i];
            K[i] = Math.sqrt(X2[i] + Y2[i]);
            if (K[i] <= D) {
                c = c + 1;
            } else {
                c = c;
            }
        }
        System.out.println(c);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int c = 0;
        int N = sc.nextInt();
        int D = sc.nextInt();
        double[] X = new double[N];
        double[] Y = new double[N];
        double[] X2 = new double[N];
        double[] Y2 = new double[N];
        double[] K = new double[N];
        for (int i = 0; i < N; i++) {
            X[i] = sc.nextDouble();
            Y[i] = sc.nextDouble();
            X2[i] = X[i]*X[i];
            Y2[i] = Y[i]*Y[i];
            K[i] = Math.sqrt(X2[i] + Y2[i]);
            if (K[i] <= D) {
                c = c + 1;
            } else {
                c = c;
            }
        }
        System.out.println(c);
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int c = 0;
        int N = sc.nextInt();
        int D = sc.nextInt();
        double[] X = new double[N];
        double[] Y = new double[N];
        double[] X2 = new double[N];
        double[] Y2 = new double[N];
        double[] K = new double[N];
        for (int i = 0; i < N; i++) {
            X[i] = sc.nextDouble();
            Y[i] = sc.nextDouble();
            X2[i] = X[i]*X[i];
            Y2[i] = Y[i]*Y[i];
            K[i] = Math.sqrt(X2[i] + Y2[i]);
            if (K[i] <= D) {
                c = c + 1;
            } else {
                c = c;
            }
        }
        System.out.println(c);
    }
}