
import java.util.Scanner;

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

        int N = scanner.nextInt();
        int D = scanner.nextInt();
        long[] X = new long[N];
        long[] Y = new long[N];
        int count = 0;

        for (int i = 0 ; i < N ; i++) {
            X[i] = scanner.nextLong();
            Y[i] = scanner.nextLong();

            double distance = Math.sqrt(X[i] * X[i] + Y[i] * Y[i]);
            if (distance <= D) {
                count++;
            }
        }

        System.out.println(count);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();
        int D = scanner.nextInt();
        long[] X = new long[N];
        long[] Y = new long[N];
        int count = 0;

        for (int i = 0 ; i < N ; i++) {
            X[i] = scanner.nextLong();
            Y[i] = scanner.nextLong();

            double distance = Math.sqrt(X[i] * X[i] + Y[i] * Y[i]);
            if (distance <= D) {
                count++;
            }
        }

        System.out.println(count);
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();
        int D = scanner.nextInt();
        long[] X = new long[N];
        long[] Y = new long[N];
        int count = 0;

        for (int i = 0 ; i < N ; i++) {
            X[i] = scanner.nextLong();
            Y[i] = scanner.nextLong();

            double distance = Math.sqrt(X[i] * X[i] + Y[i] * Y[i]);
            if (distance <= D) {
                count++;
            }
        }

        System.out.println(count);
    } main {
        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();
        int D = scanner.nextInt();
        long[] X = new long[N];
        long[] Y = new long[N];
        int count = 0;

        for (int i = 0 ; i < N ; i++) {
            X[i] = scanner.nextLong();
            Y[i] = scanner.nextLong();

            double distance = Math.sqrt(X[i] * X[i] + Y[i] * Y[i]);
            if (distance <= D) {
                count++;
            }
        }

        System.out.println(count);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N = scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner int D = scanner.nextInt(); D scanner.nextInt() scanner.nextInt scanner long[] X = new long[N]; X new long[N] N long[] Y = new long[N]; Y new long[N] N int count = 0; count 0 for (int i = 0 ; i < N ; i++) {
            X[i] = scanner.nextLong();
            Y[i] = scanner.nextLong();

            double distance = Math.sqrt(X[i] * X[i] + Y[i] * Y[i]);
            if (distance <= D) {
                count++;
            }
        } int i = 0 ; int i = 0 ; i 0 i < N i N i++ i++ i {
            X[i] = scanner.nextLong();
            Y[i] = scanner.nextLong();

            double distance = Math.sqrt(X[i] * X[i] + Y[i] * Y[i]);
            if (distance <= D) {
                count++;
            }
        } {
            X[i] = scanner.nextLong();
            Y[i] = scanner.nextLong();

            double distance = Math.sqrt(X[i] * X[i] + Y[i] * Y[i]);
            if (distance <= D) {
                count++;
            }
        } X[i] = scanner.nextLong() X[i] X i scanner.nextLong() scanner.nextLong scanner Y[i] = scanner.nextLong() Y[i] Y i scanner.nextLong() scanner.nextLong scanner double distance = Math.sqrt(X[i] * X[i] + Y[i] * Y[i]); distance Math.sqrt(X[i] * X[i] + Y[i] * Y[i]) Math.sqrt Math X[i] * X[i] + Y[i] * Y[i] X[i] * X[i] X[i] X i X[i] X i Y[i] * Y[i] Y[i] Y i Y[i] Y i if (distance <= D) {
                count++;
            } distance <= D distance 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 scanner = new Scanner(System.in);

        int N = scanner.nextInt();
        int D = scanner.nextInt();
        long[] X = new long[N];
        long[] Y = new long[N];
        int count = 0;

        for (int i = 0 ; i < N ; i++) {
            X[i] = scanner.nextLong();
            Y[i] = scanner.nextLong();

            double distance = Math.sqrt(X[i] * X[i] + Y[i] * Y[i]);
            if (distance <= D) {
                count++;
            }
        }

        System.out.println(count);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();
        int D = scanner.nextInt();
        long[] X = new long[N];
        long[] Y = new long[N];
        int count = 0;

        for (int i = 0 ; i < N ; i++) {
            X[i] = scanner.nextLong();
            Y[i] = scanner.nextLong();

            double distance = Math.sqrt(X[i] * X[i] + Y[i] * Y[i]);
            if (distance <= D) {
                count++;
            }
        }

        System.out.println(count);
    }
} Main

import java.util.Scanner;

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

        int N = scanner.nextInt();
        int D = scanner.nextInt();
        long[] X = new long[N];
        long[] Y = new long[N];
        int count = 0;

        for (int i = 0 ; i < N ; i++) {
            X[i] = scanner.nextLong();
            Y[i] = scanner.nextLong();

            double distance = Math.sqrt(X[i] * X[i] + Y[i] * Y[i]);
            if (distance <= D) {
                count++;
            }
        }

        System.out.println(count);
    }
}
