import java.util.Scanner;
class Main
{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
long n=sc.nextLong();
long d=sc.nextLong();
int cnt=0;

//long x[],y[]; x=new long[n]; y=new long[n];
long[] x=new long[(int)n];
long[] y=new long[(int)n];
int i=0;

while((n--)>0){
x[i]=sc.nextLong();
y[i]=sc.nextLong();
if(d*d>=(x[i]*x[i]+y[i]*y[i]))
cnt++;
i++;
}
System.out.println(cnt);
}


} import java.util.Scanner; Scanner java.util class Main
{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
long n=sc.nextLong();
long d=sc.nextLong();
int cnt=0;

//long x[],y[]; x=new long[n]; y=new long[n];
long[] x=new long[(int)n];
long[] y=new long[(int)n];
int i=0;

while((n--)>0){
x[i]=sc.nextLong();
y[i]=sc.nextLong();
if(d*d>=(x[i]*x[i]+y[i]*y[i]))
cnt++;
i++;
}
System.out.println(cnt);
}


} Main public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
long n=sc.nextLong();
long d=sc.nextLong();
int cnt=0;

//long x[],y[]; x=new long[n]; y=new long[n];
long[] x=new long[(int)n];
long[] y=new long[(int)n];
int i=0;

while((n--)>0){
x[i]=sc.nextLong();
y[i]=sc.nextLong();
if(d*d>=(x[i]*x[i]+y[i]*y[i]))
cnt++;
i++;
}
System.out.println(cnt);
} main {
Scanner sc=new Scanner(System.in);
long n=sc.nextLong();
long d=sc.nextLong();
int cnt=0;

//long x[],y[]; x=new long[n]; y=new long[n];
long[] x=new long[(int)n];
long[] y=new long[(int)n];
int i=0;

while((n--)>0){
x[i]=sc.nextLong();
y[i]=sc.nextLong();
if(d*d>=(x[i]*x[i]+y[i]*y[i]))
cnt++;
i++;
}
System.out.println(cnt);
} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) long n=sc.nextLong(); n sc.nextLong() sc.nextLong sc long d=sc.nextLong(); d sc.nextLong() sc.nextLong sc int cnt=0; cnt 0 long[] x=new long[(int)n]; x new long[(int)n] (int)n long[] y=new long[(int)n]; y new long[(int)n] (int)n int i=0; i 0 while((n--)>0){
x[i]=sc.nextLong();
y[i]=sc.nextLong();
if(d*d>=(x[i]*x[i]+y[i]*y[i]))
cnt++;
i++;
} (n--)>0 (n--) n 0 {
x[i]=sc.nextLong();
y[i]=sc.nextLong();
if(d*d>=(x[i]*x[i]+y[i]*y[i]))
cnt++;
i++;
} x[i]=sc.nextLong() x[i] x i sc.nextLong() sc.nextLong sc y[i]=sc.nextLong() y[i] y i sc.nextLong() sc.nextLong sc if(d*d>=(x[i]*x[i]+y[i]*y[i]))
cnt++; d*d>=(x[i]*x[i]+y[i]*y[i]) d*d d d (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 cnt++ cnt i++ i System.out.println(cnt) System.out.println System.out System System.out cnt String args[] args
import java.util.Scanner;
class Main
{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
long n=sc.nextLong();
long d=sc.nextLong();
int cnt=0;

//long x[],y[]; x=new long[n]; y=new long[n];
long[] x=new long[(int)n];
long[] y=new long[(int)n];
int i=0;

while((n--)>0){
x[i]=sc.nextLong();
y[i]=sc.nextLong();
if(d*d>=(x[i]*x[i]+y[i]*y[i]))
cnt++;
i++;
}
System.out.println(cnt);
}


}