import java.util.Scanner;
public class Main {
	//int ;
	long m,hun,as,kl,o,n,p,k,l;
	String op;
	Scanner sc = new Scanner(System.in);
	public void solve() {	
n=sc.nextInt();
m=sc.nextInt();
m=m*m;
for(o=0;o<n;o++) {
	as=sc.nextInt();
	kl=sc.nextInt();
	if(kl<0) {
		kl=kl*-1;
	}else if(as<0) {
		as=as*-1;
	}
	
	k=as*as;
	l=kl*kl;
	hun=k+l;
	if(m>=hun) {
		p=p+1;
	}
}
System.out.println(p);
	}
	public static void main(String[] args) {
		new Main().solve();
	
	}
} import java.util.Scanner; Scanner java.util public class Main {
	//int ;
	long m,hun,as,kl,o,n,p,k,l;
	String op;
	Scanner sc = new Scanner(System.in);
	public void solve() {	
n=sc.nextInt();
m=sc.nextInt();
m=m*m;
for(o=0;o<n;o++) {
	as=sc.nextInt();
	kl=sc.nextInt();
	if(kl<0) {
		kl=kl*-1;
	}else if(as<0) {
		as=as*-1;
	}
	
	k=as*as;
	l=kl*kl;
	hun=k+l;
	if(m>=hun) {
		p=p+1;
	}
}
System.out.println(p);
	}
	public static void main(String[] args) {
		new Main().solve();
	
	}
} Main //int ;
	long m m hun hun as as kl kl o o n n p p k k l; l String op; op Scanner sc = new Scanner(System.in); sc new Scanner(System.in) public void solve() {	
n=sc.nextInt();
m=sc.nextInt();
m=m*m;
for(o=0;o<n;o++) {
	as=sc.nextInt();
	kl=sc.nextInt();
	if(kl<0) {
		kl=kl*-1;
	}else if(as<0) {
		as=as*-1;
	}
	
	k=as*as;
	l=kl*kl;
	hun=k+l;
	if(m>=hun) {
		p=p+1;
	}
}
System.out.println(p);
	} solve {	
n=sc.nextInt();
m=sc.nextInt();
m=m*m;
for(o=0;o<n;o++) {
	as=sc.nextInt();
	kl=sc.nextInt();
	if(kl<0) {
		kl=kl*-1;
	}else if(as<0) {
		as=as*-1;
	}
	
	k=as*as;
	l=kl*kl;
	hun=k+l;
	if(m>=hun) {
		p=p+1;
	}
}
System.out.println(p);
	} n=sc.nextInt() n sc.nextInt() sc.nextInt sc m=sc.nextInt() m sc.nextInt() sc.nextInt sc m=m*m m m*m m m for(o=0;o<n;o++) {
	as=sc.nextInt();
	kl=sc.nextInt();
	if(kl<0) {
		kl=kl*-1;
	}else if(as<0) {
		as=as*-1;
	}
	
	k=as*as;
	l=kl*kl;
	hun=k+l;
	if(m>=hun) {
		p=p+1;
	}
} o=0; o=0 o 0 o<n o n o++ o++ o {
	as=sc.nextInt();
	kl=sc.nextInt();
	if(kl<0) {
		kl=kl*-1;
	}else if(as<0) {
		as=as*-1;
	}
	
	k=as*as;
	l=kl*kl;
	hun=k+l;
	if(m>=hun) {
		p=p+1;
	}
} {
	as=sc.nextInt();
	kl=sc.nextInt();
	if(kl<0) {
		kl=kl*-1;
	}else if(as<0) {
		as=as*-1;
	}
	
	k=as*as;
	l=kl*kl;
	hun=k+l;
	if(m>=hun) {
		p=p+1;
	}
} as=sc.nextInt() as sc.nextInt() sc.nextInt sc kl=sc.nextInt() kl sc.nextInt() sc.nextInt sc if(kl<0) {
		kl=kl*-1;
	}else if(as<0) {
		as=as*-1;
	} kl<0 kl 0 {
		kl=kl*-1;
	} kl=kl*-1 kl kl*-1 kl -1 1 if(as<0) {
		as=as*-1;
	} as<0 as 0 {
		as=as*-1;
	} as=as*-1 as as*-1 as -1 1 k=as*as k as*as as as l=kl*kl l kl*kl kl kl hun=k+l hun k+l k l if(m>=hun) {
		p=p+1;
	} m>=hun m hun {
		p=p+1;
	} p=p+1 p p+1 p 1 System.out.println(p) System.out.println System.out System System.out p public static void main(String[] args) {
		new Main().solve();
	
	} main {
		new Main().solve();
	
	} new Main().solve() new Main().solve new Main() String[] args args public class Main {
	//int ;
	long m,hun,as,kl,o,n,p,k,l;
	String op;
	Scanner sc = new Scanner(System.in);
	public void solve() {	
n=sc.nextInt();
m=sc.nextInt();
m=m*m;
for(o=0;o<n;o++) {
	as=sc.nextInt();
	kl=sc.nextInt();
	if(kl<0) {
		kl=kl*-1;
	}else if(as<0) {
		as=as*-1;
	}
	
	k=as*as;
	l=kl*kl;
	hun=k+l;
	if(m>=hun) {
		p=p+1;
	}
}
System.out.println(p);
	}
	public static void main(String[] args) {
		new Main().solve();
	
	}
} public class Main {
	//int ;
	long m,hun,as,kl,o,n,p,k,l;
	String op;
	Scanner sc = new Scanner(System.in);
	public void solve() {	
n=sc.nextInt();
m=sc.nextInt();
m=m*m;
for(o=0;o<n;o++) {
	as=sc.nextInt();
	kl=sc.nextInt();
	if(kl<0) {
		kl=kl*-1;
	}else if(as<0) {
		as=as*-1;
	}
	
	k=as*as;
	l=kl*kl;
	hun=k+l;
	if(m>=hun) {
		p=p+1;
	}
}
System.out.println(p);
	}
	public static void main(String[] args) {
		new Main().solve();
	
	}
} Main
import java.util.Scanner;
public class Main {
	//int ;
	long m,hun,as,kl,o,n,p,k,l;
	String op;
	Scanner sc = new Scanner(System.in);
	public void solve() {	
n=sc.nextInt();
m=sc.nextInt();
m=m*m;
for(o=0;o<n;o++) {
	as=sc.nextInt();
	kl=sc.nextInt();
	if(kl<0) {
		kl=kl*-1;
	}else if(as<0) {
		as=as*-1;
	}
	
	k=as*as;
	l=kl*kl;
	hun=k+l;
	if(m>=hun) {
		p=p+1;
	}
}
System.out.println(p);
	}
	public static void main(String[] args) {
		new Main().solve();
	
	}
}