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];
        for (int i = 0; i < n; i++) {
            x[i] = sc.nextInt();
            y[i] = sc.nextInt();
        }
        int sum = 0;
        for (int i = 0; i < n; i++) {
            double a = Math.sqrt(Math.pow(x[i], 2) + Math.pow(y[i], 2));
            if (a <= d) {
                sum++;
            }
        }
        System.out.println(sum);
    }

} 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];
        for (int i = 0; i < n; i++) {
            x[i] = sc.nextInt();
            y[i] = sc.nextInt();
        }
        int sum = 0;
        for (int i = 0; i < n; i++) {
            double a = Math.sqrt(Math.pow(x[i], 2) + Math.pow(y[i], 2));
            if (a <= d) {
                sum++;
            }
        }
        System.out.println(sum);
    }

} 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];
        for (int i = 0; i < n; i++) {
            x[i] = sc.nextInt();
            y[i] = sc.nextInt();
        }
        int sum = 0;
        for (int i = 0; i < n; i++) {
            double a = Math.sqrt(Math.pow(x[i], 2) + Math.pow(y[i], 2));
            if (a <= d) {
                sum++;
            }
        }
        System.out.println(sum);
    } 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];
        for (int i = 0; i < n; i++) {
            x[i] = sc.nextInt();
            y[i] = sc.nextInt();
        }
        int sum = 0;
        for (int i = 0; i < n; i++) {
            double a = Math.sqrt(Math.pow(x[i], 2) + Math.pow(y[i], 2));
            if (a <= d) {
                sum++;
            }
        }
        System.out.println(sum);
    } 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 for (int i = 0; i < n; i++) {
            x[i] = sc.nextInt();
            y[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            x[i] = sc.nextInt();
            y[i] = sc.nextInt();
        } {
            x[i] = sc.nextInt();
            y[i] = sc.nextInt();
        } 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 int sum = 0; sum 0 for (int i = 0; i < n; i++) {
            double a = Math.sqrt(Math.pow(x[i], 2) + Math.pow(y[i], 2));
            if (a <= d) {
                sum++;
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            double a = Math.sqrt(Math.pow(x[i], 2) + Math.pow(y[i], 2));
            if (a <= d) {
                sum++;
            }
        } {
            double a = Math.sqrt(Math.pow(x[i], 2) + Math.pow(y[i], 2));
            if (a <= d) {
                sum++;
            }
        } double a = Math.sqrt(Math.pow(x[i], 2) + Math.pow(y[i], 2)); a Math.sqrt(Math.pow(x[i], 2) + Math.pow(y[i], 2)) Math.sqrt Math Math.pow(x[i], 2) + Math.pow(y[i], 2) Math.pow(x[i], 2) Math.pow Math x[i] x i 2 Math.pow(y[i], 2) Math.pow Math y[i] y i 2 if (a <= d) {
                sum++;
            } a <= d a d {
                sum++;
            } sum++ sum System.out.println(sum) System.out.println System.out System System.out sum 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];
        for (int i = 0; i < n; i++) {
            x[i] = sc.nextInt();
            y[i] = sc.nextInt();
        }
        int sum = 0;
        for (int i = 0; i < n; i++) {
            double a = Math.sqrt(Math.pow(x[i], 2) + Math.pow(y[i], 2));
            if (a <= d) {
                sum++;
            }
        }
        System.out.println(sum);
    }

} 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];
        for (int i = 0; i < n; i++) {
            x[i] = sc.nextInt();
            y[i] = sc.nextInt();
        }
        int sum = 0;
        for (int i = 0; i < n; i++) {
            double a = Math.sqrt(Math.pow(x[i], 2) + Math.pow(y[i], 2));
            if (a <= d) {
                sum++;
            }
        }
        System.out.println(sum);
    }

} 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];
        for (int i = 0; i < n; i++) {
            x[i] = sc.nextInt();
            y[i] = sc.nextInt();
        }
        int sum = 0;
        for (int i = 0; i < n; i++) {
            double a = Math.sqrt(Math.pow(x[i], 2) + Math.pow(y[i], 2));
            if (a <= d) {
                sum++;
            }
        }
        System.out.println(sum);
    }

}
