import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan =new Scanner(System.in);
		int N=scan.nextInt();
		int D=scan.nextInt();
		int X[]=new int[N];
		int Y[]=new int[N];
		int count =0;
		double distance[]=new double[N];
		double resultX[]=new double[N];
		double resultY[]=new double[N];
		double result[]=new double[N];
		for(int i=0;i<N;i++) {
				X[i]=scan.nextInt();
				Y[i]=scan.nextInt();
				resultX[i]=Math.pow(X[i],2);
				resultY[i]=Math.pow(Y[i],2);
				result[i]=resultX[i]+resultY[i];
		}
		
	
		for(int i=0;i<N;i++) {
			distance[i]=Math.sqrt(result[i]);
		}
		
		for(int i=0;i<N;i++) {
		if(D>=distance[i]) {
			count+=1;
		}
		}
		System.out.println(count);
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan =new Scanner(System.in);
		int N=scan.nextInt();
		int D=scan.nextInt();
		int X[]=new int[N];
		int Y[]=new int[N];
		int count =0;
		double distance[]=new double[N];
		double resultX[]=new double[N];
		double resultY[]=new double[N];
		double result[]=new double[N];
		for(int i=0;i<N;i++) {
				X[i]=scan.nextInt();
				Y[i]=scan.nextInt();
				resultX[i]=Math.pow(X[i],2);
				resultY[i]=Math.pow(Y[i],2);
				result[i]=resultX[i]+resultY[i];
		}
		
	
		for(int i=0;i<N;i++) {
			distance[i]=Math.sqrt(result[i]);
		}
		
		for(int i=0;i<N;i++) {
		if(D>=distance[i]) {
			count+=1;
		}
		}
		System.out.println(count);
	}
} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan =new Scanner(System.in);
		int N=scan.nextInt();
		int D=scan.nextInt();
		int X[]=new int[N];
		int Y[]=new int[N];
		int count =0;
		double distance[]=new double[N];
		double resultX[]=new double[N];
		double resultY[]=new double[N];
		double result[]=new double[N];
		for(int i=0;i<N;i++) {
				X[i]=scan.nextInt();
				Y[i]=scan.nextInt();
				resultX[i]=Math.pow(X[i],2);
				resultY[i]=Math.pow(Y[i],2);
				result[i]=resultX[i]+resultY[i];
		}
		
	
		for(int i=0;i<N;i++) {
			distance[i]=Math.sqrt(result[i]);
		}
		
		for(int i=0;i<N;i++) {
		if(D>=distance[i]) {
			count+=1;
		}
		}
		System.out.println(count);
	} main {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan =new Scanner(System.in);
		int N=scan.nextInt();
		int D=scan.nextInt();
		int X[]=new int[N];
		int Y[]=new int[N];
		int count =0;
		double distance[]=new double[N];
		double resultX[]=new double[N];
		double resultY[]=new double[N];
		double result[]=new double[N];
		for(int i=0;i<N;i++) {
				X[i]=scan.nextInt();
				Y[i]=scan.nextInt();
				resultX[i]=Math.pow(X[i],2);
				resultY[i]=Math.pow(Y[i],2);
				result[i]=resultX[i]+resultY[i];
		}
		
	
		for(int i=0;i<N;i++) {
			distance[i]=Math.sqrt(result[i]);
		}
		
		for(int i=0;i<N;i++) {
		if(D>=distance[i]) {
			count+=1;
		}
		}
		System.out.println(count);
	} Scanner scan =new Scanner(System.in); scan new Scanner(System.in) int N=scan.nextInt(); N scan.nextInt() scan.nextInt scan int D=scan.nextInt(); D scan.nextInt() scan.nextInt scan int X[]=new int[N]; X new int[N] N int Y[]=new int[N]; Y new int[N] N int count =0; count 0 double distance[]=new double[N]; distance new double[N] N double resultX[]=new double[N]; resultX new double[N] N double resultY[]=new double[N]; resultY new double[N] N double result[]=new double[N]; result new double[N] N for(int i=0;i<N;i++) {
				X[i]=scan.nextInt();
				Y[i]=scan.nextInt();
				resultX[i]=Math.pow(X[i],2);
				resultY[i]=Math.pow(Y[i],2);
				result[i]=resultX[i]+resultY[i];
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
				X[i]=scan.nextInt();
				Y[i]=scan.nextInt();
				resultX[i]=Math.pow(X[i],2);
				resultY[i]=Math.pow(Y[i],2);
				result[i]=resultX[i]+resultY[i];
		} {
				X[i]=scan.nextInt();
				Y[i]=scan.nextInt();
				resultX[i]=Math.pow(X[i],2);
				resultY[i]=Math.pow(Y[i],2);
				result[i]=resultX[i]+resultY[i];
		} X[i]=scan.nextInt() X[i] X i scan.nextInt() scan.nextInt scan Y[i]=scan.nextInt() Y[i] Y i scan.nextInt() scan.nextInt scan resultX[i]=Math.pow(X[i],2) resultX[i] resultX i Math.pow(X[i],2) Math.pow Math X[i] X i 2 resultY[i]=Math.pow(Y[i],2) resultY[i] resultY i Math.pow(Y[i],2) Math.pow Math Y[i] Y i 2 result[i]=resultX[i]+resultY[i] result[i] result i resultX[i]+resultY[i] resultX[i] resultX i resultY[i] resultY i for(int i=0;i<N;i++) {
			distance[i]=Math.sqrt(result[i]);
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			distance[i]=Math.sqrt(result[i]);
		} {
			distance[i]=Math.sqrt(result[i]);
		} distance[i]=Math.sqrt(result[i]) distance[i] distance i Math.sqrt(result[i]) Math.sqrt Math result[i] result i for(int i=0;i<N;i++) {
		if(D>=distance[i]) {
			count+=1;
		}
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
		if(D>=distance[i]) {
			count+=1;
		}
		} {
		if(D>=distance[i]) {
			count+=1;
		}
		} if(D>=distance[i]) {
			count+=1;
		} D>=distance[i] D distance[i] distance i {
			count+=1;
		} count+=1 count 1 System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan =new Scanner(System.in);
		int N=scan.nextInt();
		int D=scan.nextInt();
		int X[]=new int[N];
		int Y[]=new int[N];
		int count =0;
		double distance[]=new double[N];
		double resultX[]=new double[N];
		double resultY[]=new double[N];
		double result[]=new double[N];
		for(int i=0;i<N;i++) {
				X[i]=scan.nextInt();
				Y[i]=scan.nextInt();
				resultX[i]=Math.pow(X[i],2);
				resultY[i]=Math.pow(Y[i],2);
				result[i]=resultX[i]+resultY[i];
		}
		
	
		for(int i=0;i<N;i++) {
			distance[i]=Math.sqrt(result[i]);
		}
		
		for(int i=0;i<N;i++) {
		if(D>=distance[i]) {
			count+=1;
		}
		}
		System.out.println(count);
	}
} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan =new Scanner(System.in);
		int N=scan.nextInt();
		int D=scan.nextInt();
		int X[]=new int[N];
		int Y[]=new int[N];
		int count =0;
		double distance[]=new double[N];
		double resultX[]=new double[N];
		double resultY[]=new double[N];
		double result[]=new double[N];
		for(int i=0;i<N;i++) {
				X[i]=scan.nextInt();
				Y[i]=scan.nextInt();
				resultX[i]=Math.pow(X[i],2);
				resultY[i]=Math.pow(Y[i],2);
				result[i]=resultX[i]+resultY[i];
		}
		
	
		for(int i=0;i<N;i++) {
			distance[i]=Math.sqrt(result[i]);
		}
		
		for(int i=0;i<N;i++) {
		if(D>=distance[i]) {
			count+=1;
		}
		}
		System.out.println(count);
	}
} Main
import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan =new Scanner(System.in);
		int N=scan.nextInt();
		int D=scan.nextInt();
		int X[]=new int[N];
		int Y[]=new int[N];
		int count =0;
		double distance[]=new double[N];
		double resultX[]=new double[N];
		double resultY[]=new double[N];
		double result[]=new double[N];
		for(int i=0;i<N;i++) {
				X[i]=scan.nextInt();
				Y[i]=scan.nextInt();
				resultX[i]=Math.pow(X[i],2);
				resultY[i]=Math.pow(Y[i],2);
				result[i]=resultX[i]+resultY[i];
		}
		
	
		for(int i=0;i<N;i++) {
			distance[i]=Math.sqrt(result[i]);
		}
		
		for(int i=0;i<N;i++) {
		if(D>=distance[i]) {
			count+=1;
		}
		}
		System.out.println(count);
	}
}
