import java.util.*;
import java.io.*;

 public class Main{
// taking inputs
static BufferedReader s1;
static BufferedWriter out;
static String read() throws IOException{String line="";while(line.length()==0){line=s1.readLine();continue;}return line;}
static int int_v (String s1){return Integer.parseInt(s1);}
static long long_v(String s1){return Long.parseLong(s1);}
static int[] int_arr() throws IOException{String[] a=read().split(" ");int[] b=new int[a.length];for(int i=0;i<a.length;i++){b[i]=int_v(a[i]);}return b;}
static long[] long_arr() throws IOException{String[] a=read().split(" ");long[] b=new long[a.length];for(int i=0;i<a.length;i++){b[i]=long_v(a[i]);}return b;}
static void assign(){s1=new BufferedReader(new InputStreamReader(System.in));out=new BufferedWriter(new OutputStreamWriter(System.out));}
static long Modpow(long a,long p,long m){long res=1;while(p>0){if((p&1)!=0){res=(res*a)%m;}p >>=1;a=(a*a)%m;}return res;}
static long Modmul(long a,long b,long m){return ((a%m)*(b%m))%m;}
static long ModInv(long a,long m){return Modpow(a,m-2,m);}
static long nck(int n,int r,long m){if(r>n){return 0l;}return Modmul(f[n],ModInv(Modmul(f[n-r],f[r],m),m),m);}
static long[] f;
static long mod=(long)1e9+7;
//......................................@uthor_Alx..............................................
   static long dis(long x1,long y1){
   		return x1*x1+y1*y1;
   }
   public static void main(String[] args) throws  IOException{
				assign();
				int t=1;//int_v(read()),cn=1;
				while(t--!=0){
					int[] x=int_arr();
					int n=x[0],d=x[1];
					int res=0;
					for(int i=0;i<n;i++){
						long[] p=long_arr();
						if(dis(p[0],p[1])<=(long)d*d) res++;
					}
					out.write(res+"");
					
				}
			    
			    out.flush();

	}
}

	       

	        import java.util.*; util.* java import java.io.*; io.* java public class Main{
// taking inputs
static BufferedReader s1;
static BufferedWriter out;
static String read() throws IOException{String line="";while(line.length()==0){line=s1.readLine();continue;}return line;}
static int int_v (String s1){return Integer.parseInt(s1);}
static long long_v(String s1){return Long.parseLong(s1);}
static int[] int_arr() throws IOException{String[] a=read().split(" ");int[] b=new int[a.length];for(int i=0;i<a.length;i++){b[i]=int_v(a[i]);}return b;}
static long[] long_arr() throws IOException{String[] a=read().split(" ");long[] b=new long[a.length];for(int i=0;i<a.length;i++){b[i]=long_v(a[i]);}return b;}
static void assign(){s1=new BufferedReader(new InputStreamReader(System.in));out=new BufferedWriter(new OutputStreamWriter(System.out));}
static long Modpow(long a,long p,long m){long res=1;while(p>0){if((p&1)!=0){res=(res*a)%m;}p >>=1;a=(a*a)%m;}return res;}
static long Modmul(long a,long b,long m){return ((a%m)*(b%m))%m;}
static long ModInv(long a,long m){return Modpow(a,m-2,m);}
static long nck(int n,int r,long m){if(r>n){return 0l;}return Modmul(f[n],ModInv(Modmul(f[n-r],f[r],m),m),m);}
static long[] f;
static long mod=(long)1e9+7;
//......................................@uthor_Alx..............................................
   static long dis(long x1,long y1){
   		return x1*x1+y1*y1;
   }
   public static void main(String[] args) throws  IOException{
				assign();
				int t=1;//int_v(read()),cn=1;
				while(t--!=0){
					int[] x=int_arr();
					int n=x[0],d=x[1];
					int res=0;
					for(int i=0;i<n;i++){
						long[] p=long_arr();
						if(dis(p[0],p[1])<=(long)d*d) res++;
					}
					out.write(res+"");
					
				}
			    
			    out.flush();

	}
} Main // taking inputs
static BufferedReader s1; s1 static BufferedWriter out; out static long[] f; f static long mod=(long)1e9+7; mod (long)1e9+7 (long)1e9 7 static String read() throws IOException{String line="";while(line.length()==0){line=s1.readLine();continue;}return line;} read {String line="";while(line.length()==0){line=s1.readLine();continue;}return line;} String line=""; line "" while(line.length()==0){line=s1.readLine();continue;} line.length()==0 line.length() line.length line 0 {line=s1.readLine();continue;} line=s1.readLine() line s1.readLine() s1.readLine s1 continue; return line; line static int int_v (String s1){return Integer.parseInt(s1);} int_v {return Integer.parseInt(s1);} return Integer.parseInt(s1); Integer.parseInt(s1) Integer.parseInt Integer s1 String s1 s1 static long long_v(String s1){return Long.parseLong(s1);} long_v {return Long.parseLong(s1);} return Long.parseLong(s1); Long.parseLong(s1) Long.parseLong Long s1 String s1 s1 static int[] int_arr() throws IOException{String[] a=read().split(" ");int[] b=new int[a.length];for(int i=0;i<a.length;i++){b[i]=int_v(a[i]);}return b;} int_arr {String[] a=read().split(" ");int[] b=new int[a.length];for(int i=0;i<a.length;i++){b[i]=int_v(a[i]);}return b;} String[] a=read().split(" "); a read().split(" ") read().split read() read " " int[] b=new int[a.length]; b new int[a.length] a.length a a.length for(int i=0;i<a.length;i++){b[i]=int_v(a[i]);} int i=0; int i=0; i 0 i<a.length i a.length a a.length i++ i++ i {b[i]=int_v(a[i]);} {b[i]=int_v(a[i]);} b[i]=int_v(a[i]) b[i] b i int_v(a[i]) int_v a[i] a i return b; b static long[] long_arr() throws IOException{String[] a=read().split(" ");long[] b=new long[a.length];for(int i=0;i<a.length;i++){b[i]=long_v(a[i]);}return b;} long_arr {String[] a=read().split(" ");long[] b=new long[a.length];for(int i=0;i<a.length;i++){b[i]=long_v(a[i]);}return b;} String[] a=read().split(" "); a read().split(" ") read().split read() read " " long[] b=new long[a.length]; b new long[a.length] a.length a a.length for(int i=0;i<a.length;i++){b[i]=long_v(a[i]);} int i=0; int i=0; i 0 i<a.length i a.length a a.length i++ i++ i {b[i]=long_v(a[i]);} {b[i]=long_v(a[i]);} b[i]=long_v(a[i]) b[i] b i long_v(a[i]) long_v a[i] a i return b; b static void assign(){s1=new BufferedReader(new InputStreamReader(System.in));out=new BufferedWriter(new OutputStreamWriter(System.out));} assign {s1=new BufferedReader(new InputStreamReader(System.in));out=new BufferedWriter(new OutputStreamWriter(System.out));} s1=new BufferedReader(new InputStreamReader(System.in)) s1 new BufferedReader(new InputStreamReader(System.in)) out=new BufferedWriter(new OutputStreamWriter(System.out)) out new BufferedWriter(new OutputStreamWriter(System.out)) static long Modpow(long a,long p,long m){long res=1;while(p>0){if((p&1)!=0){res=(res*a)%m;}p >>=1;a=(a*a)%m;}return res;} Modpow {long res=1;while(p>0){if((p&1)!=0){res=(res*a)%m;}p >>=1;a=(a*a)%m;}return res;} long res=1; res 1 while(p>0){if((p&1)!=0){res=(res*a)%m;}p >>=1;a=(a*a)%m;} p>0 p 0 {if((p&1)!=0){res=(res*a)%m;}p >>=1;a=(a*a)%m;} if((p&1)!=0){res=(res*a)%m;} (p&1)!=0 (p&1) p 1 0 {res=(res*a)%m;} res=(res*a)%m res (res*a)%m (res*a) res a m p >>=1 p 1 a=(a*a)%m a (a*a)%m (a*a) a a m return res; res long a a long p p long m m static long Modmul(long a,long b,long m){return ((a%m)*(b%m))%m;} Modmul {return ((a%m)*(b%m))%m;} return ((a%m)*(b%m))%m; ((a%m)*(b%m))%m ((a%m)*(b%m)) (a%m) a m (b%m) b m m long a a long b b long m m static long ModInv(long a,long m){return Modpow(a,m-2,m);} ModInv {return Modpow(a,m-2,m);} return Modpow(a,m-2,m); Modpow(a,m-2,m) Modpow a m-2 m 2 m long a a long m m static long nck(int n,int r,long m){if(r>n){return 0l;}return Modmul(f[n],ModInv(Modmul(f[n-r],f[r],m),m),m);} nck {if(r>n){return 0l;}return Modmul(f[n],ModInv(Modmul(f[n-r],f[r],m),m),m);} if(r>n){return 0l;} r>n r n {return 0l;} return 0l; 0l return Modmul(f[n],ModInv(Modmul(f[n-r],f[r],m),m),m); Modmul(f[n],ModInv(Modmul(f[n-r],f[r],m),m),m) Modmul f[n] f n ModInv(Modmul(f[n-r],f[r],m),m) ModInv Modmul(f[n-r],f[r],m) Modmul f[n-r] f n-r n r f[r] f r m m m int n n int r r long m m //......................................@uthor_Alx..............................................
   static long dis(long x1,long y1){
   		return x1*x1+y1*y1;
   } dis {
   		return x1*x1+y1*y1;
   } return x1*x1+y1*y1; x1*x1+y1*y1 x1*x1 x1 x1 y1*y1 y1 y1 long x1 x1 long y1 y1 public static void main(String[] args) throws  IOException{
				assign();
				int t=1;//int_v(read()),cn=1;
				while(t--!=0){
					int[] x=int_arr();
					int n=x[0],d=x[1];
					int res=0;
					for(int i=0;i<n;i++){
						long[] p=long_arr();
						if(dis(p[0],p[1])<=(long)d*d) res++;
					}
					out.write(res+"");
					
				}
			    
			    out.flush();

	} main {
				assign();
				int t=1;//int_v(read()),cn=1;
				while(t--!=0){
					int[] x=int_arr();
					int n=x[0],d=x[1];
					int res=0;
					for(int i=0;i<n;i++){
						long[] p=long_arr();
						if(dis(p[0],p[1])<=(long)d*d) res++;
					}
					out.write(res+"");
					
				}
			    
			    out.flush();

	} assign() assign int t=1; t 1 while(t--!=0){
					int[] x=int_arr();
					int n=x[0],d=x[1];
					int res=0;
					for(int i=0;i<n;i++){
						long[] p=long_arr();
						if(dis(p[0],p[1])<=(long)d*d) res++;
					}
					out.write(res+"");
					
				} t--!=0 t-- t 0 {
					int[] x=int_arr();
					int n=x[0],d=x[1];
					int res=0;
					for(int i=0;i<n;i++){
						long[] p=long_arr();
						if(dis(p[0],p[1])<=(long)d*d) res++;
					}
					out.write(res+"");
					
				} int[] x=int_arr(); x int_arr() int_arr int n=x[0] n x[0] x 0 d=x[1]; d x[1] x 1 int res=0; res 0 for(int i=0;i<n;i++){
						long[] p=long_arr();
						if(dis(p[0],p[1])<=(long)d*d) res++;
					} int i=0; int i=0; i 0 i<n i n i++ i++ i {
						long[] p=long_arr();
						if(dis(p[0],p[1])<=(long)d*d) res++;
					} {
						long[] p=long_arr();
						if(dis(p[0],p[1])<=(long)d*d) res++;
					} long[] p=long_arr(); p long_arr() long_arr if(dis(p[0],p[1])<=(long)d*d) res++; dis(p[0],p[1])<=(long)d*d dis(p[0],p[1]) dis p[0] p 0 p[1] p 1 (long)d*d (long)d d res++ res out.write(res+"") out.write out res+"" res "" out.flush() out.flush out String[] args args public class Main{
// taking inputs
static BufferedReader s1;
static BufferedWriter out;
static String read() throws IOException{String line="";while(line.length()==0){line=s1.readLine();continue;}return line;}
static int int_v (String s1){return Integer.parseInt(s1);}
static long long_v(String s1){return Long.parseLong(s1);}
static int[] int_arr() throws IOException{String[] a=read().split(" ");int[] b=new int[a.length];for(int i=0;i<a.length;i++){b[i]=int_v(a[i]);}return b;}
static long[] long_arr() throws IOException{String[] a=read().split(" ");long[] b=new long[a.length];for(int i=0;i<a.length;i++){b[i]=long_v(a[i]);}return b;}
static void assign(){s1=new BufferedReader(new InputStreamReader(System.in));out=new BufferedWriter(new OutputStreamWriter(System.out));}
static long Modpow(long a,long p,long m){long res=1;while(p>0){if((p&1)!=0){res=(res*a)%m;}p >>=1;a=(a*a)%m;}return res;}
static long Modmul(long a,long b,long m){return ((a%m)*(b%m))%m;}
static long ModInv(long a,long m){return Modpow(a,m-2,m);}
static long nck(int n,int r,long m){if(r>n){return 0l;}return Modmul(f[n],ModInv(Modmul(f[n-r],f[r],m),m),m);}
static long[] f;
static long mod=(long)1e9+7;
//......................................@uthor_Alx..............................................
   static long dis(long x1,long y1){
   		return x1*x1+y1*y1;
   }
   public static void main(String[] args) throws  IOException{
				assign();
				int t=1;//int_v(read()),cn=1;
				while(t--!=0){
					int[] x=int_arr();
					int n=x[0],d=x[1];
					int res=0;
					for(int i=0;i<n;i++){
						long[] p=long_arr();
						if(dis(p[0],p[1])<=(long)d*d) res++;
					}
					out.write(res+"");
					
				}
			    
			    out.flush();

	}
} public class Main{
// taking inputs
static BufferedReader s1;
static BufferedWriter out;
static String read() throws IOException{String line="";while(line.length()==0){line=s1.readLine();continue;}return line;}
static int int_v (String s1){return Integer.parseInt(s1);}
static long long_v(String s1){return Long.parseLong(s1);}
static int[] int_arr() throws IOException{String[] a=read().split(" ");int[] b=new int[a.length];for(int i=0;i<a.length;i++){b[i]=int_v(a[i]);}return b;}
static long[] long_arr() throws IOException{String[] a=read().split(" ");long[] b=new long[a.length];for(int i=0;i<a.length;i++){b[i]=long_v(a[i]);}return b;}
static void assign(){s1=new BufferedReader(new InputStreamReader(System.in));out=new BufferedWriter(new OutputStreamWriter(System.out));}
static long Modpow(long a,long p,long m){long res=1;while(p>0){if((p&1)!=0){res=(res*a)%m;}p >>=1;a=(a*a)%m;}return res;}
static long Modmul(long a,long b,long m){return ((a%m)*(b%m))%m;}
static long ModInv(long a,long m){return Modpow(a,m-2,m);}
static long nck(int n,int r,long m){if(r>n){return 0l;}return Modmul(f[n],ModInv(Modmul(f[n-r],f[r],m),m),m);}
static long[] f;
static long mod=(long)1e9+7;
//......................................@uthor_Alx..............................................
   static long dis(long x1,long y1){
   		return x1*x1+y1*y1;
   }
   public static void main(String[] args) throws  IOException{
				assign();
				int t=1;//int_v(read()),cn=1;
				while(t--!=0){
					int[] x=int_arr();
					int n=x[0],d=x[1];
					int res=0;
					for(int i=0;i<n;i++){
						long[] p=long_arr();
						if(dis(p[0],p[1])<=(long)d*d) res++;
					}
					out.write(res+"");
					
				}
			    
			    out.flush();

	}
} Main
import java.util.*;
import java.io.*;

 public class Main{
// taking inputs
static BufferedReader s1;
static BufferedWriter out;
static String read() throws IOException{String line="";while(line.length()==0){line=s1.readLine();continue;}return line;}
static int int_v (String s1){return Integer.parseInt(s1);}
static long long_v(String s1){return Long.parseLong(s1);}
static int[] int_arr() throws IOException{String[] a=read().split(" ");int[] b=new int[a.length];for(int i=0;i<a.length;i++){b[i]=int_v(a[i]);}return b;}
static long[] long_arr() throws IOException{String[] a=read().split(" ");long[] b=new long[a.length];for(int i=0;i<a.length;i++){b[i]=long_v(a[i]);}return b;}
static void assign(){s1=new BufferedReader(new InputStreamReader(System.in));out=new BufferedWriter(new OutputStreamWriter(System.out));}
static long Modpow(long a,long p,long m){long res=1;while(p>0){if((p&1)!=0){res=(res*a)%m;}p >>=1;a=(a*a)%m;}return res;}
static long Modmul(long a,long b,long m){return ((a%m)*(b%m))%m;}
static long ModInv(long a,long m){return Modpow(a,m-2,m);}
static long nck(int n,int r,long m){if(r>n){return 0l;}return Modmul(f[n],ModInv(Modmul(f[n-r],f[r],m),m),m);}
static long[] f;
static long mod=(long)1e9+7;
//......................................@uthor_Alx..............................................
   static long dis(long x1,long y1){
   		return x1*x1+y1*y1;
   }
   public static void main(String[] args) throws  IOException{
				assign();
				int t=1;//int_v(read()),cn=1;
				while(t--!=0){
					int[] x=int_arr();
					int n=x[0],d=x[1];
					int res=0;
					for(int i=0;i<n;i++){
						long[] p=long_arr();
						if(dis(p[0],p[1])<=(long)d*d) res++;
					}
					out.write(res+"");
					
				}
			    
			    out.flush();

	}
}

	       

	       
