import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        int D = scan.nextInt();

        int count = 0;
        long a,b;
        double c;

        for (int i=0;i<N;i++ ){
            a = scan.nextLong();
            b = scan.nextLong();

            c = Math.sqrt(a * a + b * b);

            if(c<=D){
                count++;
            }
        }

    System.out.println(+ count + "");
    }
} import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        int D = scan.nextInt();

        int count = 0;
        long a,b;
        double c;

        for (int i=0;i<N;i++ ){
            a = scan.nextLong();
            b = scan.nextLong();

            c = Math.sqrt(a * a + b * b);

            if(c<=D){
                count++;
            }
        }

    System.out.println(+ count + "");
    }
} Main public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        int D = scan.nextInt();

        int count = 0;
        long a,b;
        double c;

        for (int i=0;i<N;i++ ){
            a = scan.nextLong();
            b = scan.nextLong();

            c = Math.sqrt(a * a + b * b);

            if(c<=D){
                count++;
            }
        }

    System.out.println(+ count + "");
    } main {
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        int D = scan.nextInt();

        int count = 0;
        long a,b;
        double c;

        for (int i=0;i<N;i++ ){
            a = scan.nextLong();
            b = scan.nextLong();

            c = Math.sqrt(a * a + b * b);

            if(c<=D){
                count++;
            }
        }

    System.out.println(+ count + "");
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan int D = scan.nextInt(); D scan.nextInt() scan.nextInt scan int count = 0; count 0 long a a b; b double c; c for (int i=0;i<N;i++ ){
            a = scan.nextLong();
            b = scan.nextLong();

            c = Math.sqrt(a * a + b * b);

            if(c<=D){
                count++;
            }
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            a = scan.nextLong();
            b = scan.nextLong();

            c = Math.sqrt(a * a + b * b);

            if(c<=D){
                count++;
            }
        } {
            a = scan.nextLong();
            b = scan.nextLong();

            c = Math.sqrt(a * a + b * b);

            if(c<=D){
                count++;
            }
        } a = scan.nextLong() a scan.nextLong() scan.nextLong scan b = scan.nextLong() b scan.nextLong() scan.nextLong scan c = Math.sqrt(a * a + b * b) c Math.sqrt(a * a + b * b) Math.sqrt Math a * a + b * b a * a a a b * b b b if(c<=D){
                count++;
            } c<=D c D {
                count++;
            } count++ count System.out.println(+ count + "") System.out.println System.out System System.out + count + "" + count count "" String[] args args public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        int D = scan.nextInt();

        int count = 0;
        long a,b;
        double c;

        for (int i=0;i<N;i++ ){
            a = scan.nextLong();
            b = scan.nextLong();

            c = Math.sqrt(a * a + b * b);

            if(c<=D){
                count++;
            }
        }

    System.out.println(+ count + "");
    }
} public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        int D = scan.nextInt();

        int count = 0;
        long a,b;
        double c;

        for (int i=0;i<N;i++ ){
            a = scan.nextLong();
            b = scan.nextLong();

            c = Math.sqrt(a * a + b * b);

            if(c<=D){
                count++;
            }
        }

    System.out.println(+ count + "");
    }
} Main
import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        int D = scan.nextInt();

        int count = 0;
        long a,b;
        double c;

        for (int i=0;i<N;i++ ){
            a = scan.nextLong();
            b = scan.nextLong();

            c = Math.sqrt(a * a + b * b);

            if(c<=D){
                count++;
            }
        }

    System.out.println(+ count + "");
    }
}
