
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner ob=new Scanner(System.in);
long n=ob.nextInt();
double d=ob.nextDouble();
int k=0;
for(int t=1;t<=n;t++)
{
long  x=ob.nextLong();
long y=ob.nextLong();
double ans=Math.sqrt((((x)*(x))*(1.0))+(((y)*(y))*(1.0)));

if(ans<=d){k++;}
}
        System.out.println(k);
       /* int n=ob.nextInt();
        if (n>=30) {
            System.out.println("YES");
        }
        else {
            System.out.println("NO");
        } */
    }

} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner ob=new Scanner(System.in);
long n=ob.nextInt();
double d=ob.nextDouble();
int k=0;
for(int t=1;t<=n;t++)
{
long  x=ob.nextLong();
long y=ob.nextLong();
double ans=Math.sqrt((((x)*(x))*(1.0))+(((y)*(y))*(1.0)));

if(ans<=d){k++;}
}
        System.out.println(k);
       /* int n=ob.nextInt();
        if (n>=30) {
            System.out.println("YES");
        }
        else {
            System.out.println("NO");
        } */
    }

} Main public static void main(String[] args) {
        Scanner ob=new Scanner(System.in);
long n=ob.nextInt();
double d=ob.nextDouble();
int k=0;
for(int t=1;t<=n;t++)
{
long  x=ob.nextLong();
long y=ob.nextLong();
double ans=Math.sqrt((((x)*(x))*(1.0))+(((y)*(y))*(1.0)));

if(ans<=d){k++;}
}
        System.out.println(k);
       /* int n=ob.nextInt();
        if (n>=30) {
            System.out.println("YES");
        }
        else {
            System.out.println("NO");
        } */
    } main {
        Scanner ob=new Scanner(System.in);
long n=ob.nextInt();
double d=ob.nextDouble();
int k=0;
for(int t=1;t<=n;t++)
{
long  x=ob.nextLong();
long y=ob.nextLong();
double ans=Math.sqrt((((x)*(x))*(1.0))+(((y)*(y))*(1.0)));

if(ans<=d){k++;}
}
        System.out.println(k);
       /* int n=ob.nextInt();
        if (n>=30) {
            System.out.println("YES");
        }
        else {
            System.out.println("NO");
        } */
    } Scanner ob=new Scanner(System.in); ob new Scanner(System.in) long n=ob.nextInt(); n ob.nextInt() ob.nextInt ob double d=ob.nextDouble(); d ob.nextDouble() ob.nextDouble ob int k=0; k 0 for(int t=1;t<=n;t++)
{
long  x=ob.nextLong();
long y=ob.nextLong();
double ans=Math.sqrt((((x)*(x))*(1.0))+(((y)*(y))*(1.0)));

if(ans<=d){k++;}
} int t=1; int t=1; t 1 t<=n t n t++ t++ t {
long  x=ob.nextLong();
long y=ob.nextLong();
double ans=Math.sqrt((((x)*(x))*(1.0))+(((y)*(y))*(1.0)));

if(ans<=d){k++;}
} {
long  x=ob.nextLong();
long y=ob.nextLong();
double ans=Math.sqrt((((x)*(x))*(1.0))+(((y)*(y))*(1.0)));

if(ans<=d){k++;}
} long  x=ob.nextLong(); x ob.nextLong() ob.nextLong ob long y=ob.nextLong(); y ob.nextLong() ob.nextLong ob double ans=Math.sqrt((((x)*(x))*(1.0))+(((y)*(y))*(1.0))); ans Math.sqrt((((x)*(x))*(1.0))+(((y)*(y))*(1.0))) Math.sqrt Math (((x)*(x))*(1.0))+(((y)*(y))*(1.0)) (((x)*(x))*(1.0)) ((x)*(x)) (x) (x) (1.0) (((y)*(y))*(1.0)) ((y)*(y)) (y) (y) (1.0) if(ans<=d){k++;} ans<=d ans d {k++;} k++ k System.out.println(k) System.out.println System.out System System.out k String[] args args public class Main {

    public static void main(String[] args) {
        Scanner ob=new Scanner(System.in);
long n=ob.nextInt();
double d=ob.nextDouble();
int k=0;
for(int t=1;t<=n;t++)
{
long  x=ob.nextLong();
long y=ob.nextLong();
double ans=Math.sqrt((((x)*(x))*(1.0))+(((y)*(y))*(1.0)));

if(ans<=d){k++;}
}
        System.out.println(k);
       /* int n=ob.nextInt();
        if (n>=30) {
            System.out.println("YES");
        }
        else {
            System.out.println("NO");
        } */
    }

} public class Main {

    public static void main(String[] args) {
        Scanner ob=new Scanner(System.in);
long n=ob.nextInt();
double d=ob.nextDouble();
int k=0;
for(int t=1;t<=n;t++)
{
long  x=ob.nextLong();
long y=ob.nextLong();
double ans=Math.sqrt((((x)*(x))*(1.0))+(((y)*(y))*(1.0)));

if(ans<=d){k++;}
}
        System.out.println(k);
       /* int n=ob.nextInt();
        if (n>=30) {
            System.out.println("YES");
        }
        else {
            System.out.println("NO");
        } */
    }

} Main

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner ob=new Scanner(System.in);
long n=ob.nextInt();
double d=ob.nextDouble();
int k=0;
for(int t=1;t<=n;t++)
{
long  x=ob.nextLong();
long y=ob.nextLong();
double ans=Math.sqrt((((x)*(x))*(1.0))+(((y)*(y))*(1.0)));

if(ans<=d){k++;}
}
        System.out.println(k);
       /* int n=ob.nextInt();
        if (n>=30) {
            System.out.println("YES");
        }
        else {
            System.out.println("NO");
        } */
    }

}
