import java.util.Scanner;

public class Main {

    public Main() {
        Scanner scanner = new Scanner(System.in);
        long N = scanner.nextLong();
        long D = scanner.nextLong();

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

            if (X*X + Y*Y <= D*D){
                R++;
            }
        }

        System.out.println(R);
    }

    public static void main(String[] args) {
        new Main();
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public Main() {
        Scanner scanner = new Scanner(System.in);
        long N = scanner.nextLong();
        long D = scanner.nextLong();

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

            if (X*X + Y*Y <= D*D){
                R++;
            }
        }

        System.out.println(R);
    }

    public static void main(String[] args) {
        new Main();
    }
} Main public Main() {
        Scanner scanner = new Scanner(System.in);
        long N = scanner.nextLong();
        long D = scanner.nextLong();

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

            if (X*X + Y*Y <= D*D){
                R++;
            }
        }

        System.out.println(R);
    } Main {
        Scanner scanner = new Scanner(System.in);
        long N = scanner.nextLong();
        long D = scanner.nextLong();

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

            if (X*X + Y*Y <= D*D){
                R++;
            }
        }

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

            if (X*X + Y*Y <= D*D){
                R++;
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            long X = scanner.nextLong();
            long Y = scanner.nextLong();

            if (X*X + Y*Y <= D*D){
                R++;
            }
        } {
            long X = scanner.nextLong();
            long Y = scanner.nextLong();

            if (X*X + Y*Y <= D*D){
                R++;
            }
        } long X = scanner.nextLong(); X scanner.nextLong() scanner.nextLong scanner long Y = scanner.nextLong(); Y scanner.nextLong() scanner.nextLong scanner if (X*X + Y*Y <= D*D){
                R++;
            } X*X + Y*Y <= D*D X*X + Y*Y X*X X X Y*Y Y Y D*D D D {
                R++;
            } R++ R System.out.println(R) System.out.println System.out System System.out R public static void main(String[] args) {
        new Main();
    } main {
        new Main();
    } new Main() String[] args args public class Main {

    public Main() {
        Scanner scanner = new Scanner(System.in);
        long N = scanner.nextLong();
        long D = scanner.nextLong();

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

            if (X*X + Y*Y <= D*D){
                R++;
            }
        }

        System.out.println(R);
    }

    public static void main(String[] args) {
        new Main();
    }
} public class Main {

    public Main() {
        Scanner scanner = new Scanner(System.in);
        long N = scanner.nextLong();
        long D = scanner.nextLong();

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

            if (X*X + Y*Y <= D*D){
                R++;
            }
        }

        System.out.println(R);
    }

    public static void main(String[] args) {
        new Main();
    }
} Main
import java.util.Scanner;

public class Main {

    public Main() {
        Scanner scanner = new Scanner(System.in);
        long N = scanner.nextLong();
        long D = scanner.nextLong();

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

            if (X*X + Y*Y <= D*D){
                R++;
            }
        }

        System.out.println(R);
    }

    public static void main(String[] args) {
        new Main();
    }
}