import java.util.*;


public class Main {
	static int j =0;
	public static void main(String[] args) {
		 Scanner sc = new Scanner(System.in);
		 int x = sc.nextInt();
		 int y = sc.nextInt();
		 int c=0;
		 for(int i=0;i<x;i++) {
			 double a= sc.nextInt();
			 double b= sc.nextInt();
			 
			 if(Math.sqrt(a*a+b*b)<=y) {
				 c++;
			 }
		 }
		 System.out.println(c);
	}


} import java.util.*; util.* java public class Main {
	static int j =0;
	public static void main(String[] args) {
		 Scanner sc = new Scanner(System.in);
		 int x = sc.nextInt();
		 int y = sc.nextInt();
		 int c=0;
		 for(int i=0;i<x;i++) {
			 double a= sc.nextInt();
			 double b= sc.nextInt();
			 
			 if(Math.sqrt(a*a+b*b)<=y) {
				 c++;
			 }
		 }
		 System.out.println(c);
	}


} Main static int j =0; j 0 public static void main(String[] args) {
		 Scanner sc = new Scanner(System.in);
		 int x = sc.nextInt();
		 int y = sc.nextInt();
		 int c=0;
		 for(int i=0;i<x;i++) {
			 double a= sc.nextInt();
			 double b= sc.nextInt();
			 
			 if(Math.sqrt(a*a+b*b)<=y) {
				 c++;
			 }
		 }
		 System.out.println(c);
	} main {
		 Scanner sc = new Scanner(System.in);
		 int x = sc.nextInt();
		 int y = sc.nextInt();
		 int c=0;
		 for(int i=0;i<x;i++) {
			 double a= sc.nextInt();
			 double b= sc.nextInt();
			 
			 if(Math.sqrt(a*a+b*b)<=y) {
				 c++;
			 }
		 }
		 System.out.println(c);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int x = sc.nextInt(); x sc.nextInt() sc.nextInt sc int y = sc.nextInt(); y sc.nextInt() sc.nextInt sc int c=0; c 0 for(int i=0;i<x;i++) {
			 double a= sc.nextInt();
			 double b= sc.nextInt();
			 
			 if(Math.sqrt(a*a+b*b)<=y) {
				 c++;
			 }
		 } int i=0; int i=0; i 0 i<x i x i++ i++ i {
			 double a= sc.nextInt();
			 double b= sc.nextInt();
			 
			 if(Math.sqrt(a*a+b*b)<=y) {
				 c++;
			 }
		 } {
			 double a= sc.nextInt();
			 double b= sc.nextInt();
			 
			 if(Math.sqrt(a*a+b*b)<=y) {
				 c++;
			 }
		 } double a= sc.nextInt(); a sc.nextInt() sc.nextInt sc double b= sc.nextInt(); b sc.nextInt() sc.nextInt sc if(Math.sqrt(a*a+b*b)<=y) {
				 c++;
			 } Math.sqrt(a*a+b*b)<=y Math.sqrt(a*a+b*b) Math.sqrt Math a*a+b*b a*a a a b*b b b y {
				 c++;
			 } c++ c System.out.println(c) System.out.println System.out System System.out c String[] args args public class Main {
	static int j =0;
	public static void main(String[] args) {
		 Scanner sc = new Scanner(System.in);
		 int x = sc.nextInt();
		 int y = sc.nextInt();
		 int c=0;
		 for(int i=0;i<x;i++) {
			 double a= sc.nextInt();
			 double b= sc.nextInt();
			 
			 if(Math.sqrt(a*a+b*b)<=y) {
				 c++;
			 }
		 }
		 System.out.println(c);
	}


} public class Main {
	static int j =0;
	public static void main(String[] args) {
		 Scanner sc = new Scanner(System.in);
		 int x = sc.nextInt();
		 int y = sc.nextInt();
		 int c=0;
		 for(int i=0;i<x;i++) {
			 double a= sc.nextInt();
			 double b= sc.nextInt();
			 
			 if(Math.sqrt(a*a+b*b)<=y) {
				 c++;
			 }
		 }
		 System.out.println(c);
	}


} Main
import java.util.*;


public class Main {
	static int j =0;
	public static void main(String[] args) {
		 Scanner sc = new Scanner(System.in);
		 int x = sc.nextInt();
		 int y = sc.nextInt();
		 int c=0;
		 for(int i=0;i<x;i++) {
			 double a= sc.nextInt();
			 double b= sc.nextInt();
			 
			 if(Math.sqrt(a*a+b*b)<=y) {
				 c++;
			 }
		 }
		 System.out.println(c);
	}


}
