import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int N = sc.nextInt();//点の数
		int D = sc.nextInt();//距離
		//座標の取得
		int[] x =new int[N];
		int[] y =new int[N];
		for(int i=0;i<N;i++) {
			x[i]=sc.nextInt();
			y[i]=sc.nextInt();
		}
		//計算
		int check=0;
		double dis;
		for(int i=0;i<N;i++) {
			dis=Math.sqrt((double)x[i]*x[i]+(double)y[i]*y[i]);
			if(dis<=(double)D) {
				check++;
			}
		}
		System.out.println(check);
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int N = sc.nextInt();//点の数
		int D = sc.nextInt();//距離
		//座標の取得
		int[] x =new int[N];
		int[] y =new int[N];
		for(int i=0;i<N;i++) {
			x[i]=sc.nextInt();
			y[i]=sc.nextInt();
		}
		//計算
		int check=0;
		double dis;
		for(int i=0;i<N;i++) {
			dis=Math.sqrt((double)x[i]*x[i]+(double)y[i]*y[i]);
			if(dis<=(double)D) {
				check++;
			}
		}
		System.out.println(check);
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int N = sc.nextInt();//点の数
		int D = sc.nextInt();//距離
		//座標の取得
		int[] x =new int[N];
		int[] y =new int[N];
		for(int i=0;i<N;i++) {
			x[i]=sc.nextInt();
			y[i]=sc.nextInt();
		}
		//計算
		int check=0;
		double dis;
		for(int i=0;i<N;i++) {
			dis=Math.sqrt((double)x[i]*x[i]+(double)y[i]*y[i]);
			if(dis<=(double)D) {
				check++;
			}
		}
		System.out.println(check);
	} main {
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int N = sc.nextInt();//点の数
		int D = sc.nextInt();//距離
		//座標の取得
		int[] x =new int[N];
		int[] y =new int[N];
		for(int i=0;i<N;i++) {
			x[i]=sc.nextInt();
			y[i]=sc.nextInt();
		}
		//計算
		int check=0;
		double dis;
		for(int i=0;i<N;i++) {
			dis=Math.sqrt((double)x[i]*x[i]+(double)y[i]*y[i]);
			if(dis<=(double)D) {
				check++;
			}
		}
		System.out.println(check);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int D = sc.nextInt(); D sc.nextInt() sc.nextInt sc int[] x =new int[N]; x new int[N] N int[] y =new int[N]; y new int[N] N for(int i=0;i<N;i++) {
			x[i]=sc.nextInt();
			y[i]=sc.nextInt();
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			x[i]=sc.nextInt();
			y[i]=sc.nextInt();
		} {
			x[i]=sc.nextInt();
			y[i]=sc.nextInt();
		} x[i]=sc.nextInt() x[i] x i sc.nextInt() sc.nextInt sc y[i]=sc.nextInt() y[i] y i sc.nextInt() sc.nextInt sc int check=0; check 0 double dis; dis for(int i=0;i<N;i++) {
			dis=Math.sqrt((double)x[i]*x[i]+(double)y[i]*y[i]);
			if(dis<=(double)D) {
				check++;
			}
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			dis=Math.sqrt((double)x[i]*x[i]+(double)y[i]*y[i]);
			if(dis<=(double)D) {
				check++;
			}
		} {
			dis=Math.sqrt((double)x[i]*x[i]+(double)y[i]*y[i]);
			if(dis<=(double)D) {
				check++;
			}
		} dis=Math.sqrt((double)x[i]*x[i]+(double)y[i]*y[i]) dis Math.sqrt((double)x[i]*x[i]+(double)y[i]*y[i]) Math.sqrt Math (double)x[i]*x[i]+(double)y[i]*y[i] (double)x[i]*x[i] (double)x[i] x i x[i] x i (double)y[i]*y[i] (double)y[i] y i y[i] y i if(dis<=(double)D) {
				check++;
			} dis<=(double)D dis (double)D {
				check++;
			} check++ check System.out.println(check) System.out.println System.out System System.out check String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int N = sc.nextInt();//点の数
		int D = sc.nextInt();//距離
		//座標の取得
		int[] x =new int[N];
		int[] y =new int[N];
		for(int i=0;i<N;i++) {
			x[i]=sc.nextInt();
			y[i]=sc.nextInt();
		}
		//計算
		int check=0;
		double dis;
		for(int i=0;i<N;i++) {
			dis=Math.sqrt((double)x[i]*x[i]+(double)y[i]*y[i]);
			if(dis<=(double)D) {
				check++;
			}
		}
		System.out.println(check);
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int N = sc.nextInt();//点の数
		int D = sc.nextInt();//距離
		//座標の取得
		int[] x =new int[N];
		int[] y =new int[N];
		for(int i=0;i<N;i++) {
			x[i]=sc.nextInt();
			y[i]=sc.nextInt();
		}
		//計算
		int check=0;
		double dis;
		for(int i=0;i<N;i++) {
			dis=Math.sqrt((double)x[i]*x[i]+(double)y[i]*y[i]);
			if(dis<=(double)D) {
				check++;
			}
		}
		System.out.println(check);
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int N = sc.nextInt();//点の数
		int D = sc.nextInt();//距離
		//座標の取得
		int[] x =new int[N];
		int[] y =new int[N];
		for(int i=0;i<N;i++) {
			x[i]=sc.nextInt();
			y[i]=sc.nextInt();
		}
		//計算
		int check=0;
		double dis;
		for(int i=0;i<N;i++) {
			dis=Math.sqrt((double)x[i]*x[i]+(double)y[i]*y[i]);
			if(dis<=(double)D) {
				check++;
			}
		}
		System.out.println(check);
	}

}
