import java.util.Scanner;


public class Main {
//	final static int MOD = 1000000007;

	public static long ans = 0;

	public static void main(String[] args) {

//		int ans = 0;
		Scanner sc = new Scanner(System.in);
		boolean f = false;

		int n = sc.nextInt();
		double d = sc.nextDouble();

		long[] a = new long[n];
		long[] b = new long[n];
		for (int i = 0; i < n; i++) {
			a[i]= sc.nextLong();
			b[i]= sc.nextLong();
		}


		//-------------------------------------------------------------------------------------

		for(int i = 0; i < n; i++) {
			long tmpa = (a[i] * a[i]);
			long tmpb = (b[i] * b[i]);
			long tmp = tmpa + tmpb;
			double calc = Math.sqrt(tmp);
			System.err.println(tmpb);
			if(d * d >= tmp) {
				ans++;
			}
		}


		//-------------------------------------------------------------------------------------

//		if(f) {
//			System.out.println("Yes");
//		} else {
//			System.out.println("No");
//		}

		System.out.println(ans);

		sc.close();
	}



} import java.util.Scanner; Scanner java.util public class Main {
//	final static int MOD = 1000000007;

	public static long ans = 0;

	public static void main(String[] args) {

//		int ans = 0;
		Scanner sc = new Scanner(System.in);
		boolean f = false;

		int n = sc.nextInt();
		double d = sc.nextDouble();

		long[] a = new long[n];
		long[] b = new long[n];
		for (int i = 0; i < n; i++) {
			a[i]= sc.nextLong();
			b[i]= sc.nextLong();
		}


		//-------------------------------------------------------------------------------------

		for(int i = 0; i < n; i++) {
			long tmpa = (a[i] * a[i]);
			long tmpb = (b[i] * b[i]);
			long tmp = tmpa + tmpb;
			double calc = Math.sqrt(tmp);
			System.err.println(tmpb);
			if(d * d >= tmp) {
				ans++;
			}
		}


		//-------------------------------------------------------------------------------------

//		if(f) {
//			System.out.println("Yes");
//		} else {
//			System.out.println("No");
//		}

		System.out.println(ans);

		sc.close();
	}



} Main public static long ans = 0; ans 0 public static void main(String[] args) {

//		int ans = 0;
		Scanner sc = new Scanner(System.in);
		boolean f = false;

		int n = sc.nextInt();
		double d = sc.nextDouble();

		long[] a = new long[n];
		long[] b = new long[n];
		for (int i = 0; i < n; i++) {
			a[i]= sc.nextLong();
			b[i]= sc.nextLong();
		}


		//-------------------------------------------------------------------------------------

		for(int i = 0; i < n; i++) {
			long tmpa = (a[i] * a[i]);
			long tmpb = (b[i] * b[i]);
			long tmp = tmpa + tmpb;
			double calc = Math.sqrt(tmp);
			System.err.println(tmpb);
			if(d * d >= tmp) {
				ans++;
			}
		}


		//-------------------------------------------------------------------------------------

//		if(f) {
//			System.out.println("Yes");
//		} else {
//			System.out.println("No");
//		}

		System.out.println(ans);

		sc.close();
	} main {

//		int ans = 0;
		Scanner sc = new Scanner(System.in);
		boolean f = false;

		int n = sc.nextInt();
		double d = sc.nextDouble();

		long[] a = new long[n];
		long[] b = new long[n];
		for (int i = 0; i < n; i++) {
			a[i]= sc.nextLong();
			b[i]= sc.nextLong();
		}


		//-------------------------------------------------------------------------------------

		for(int i = 0; i < n; i++) {
			long tmpa = (a[i] * a[i]);
			long tmpb = (b[i] * b[i]);
			long tmp = tmpa + tmpb;
			double calc = Math.sqrt(tmp);
			System.err.println(tmpb);
			if(d * d >= tmp) {
				ans++;
			}
		}


		//-------------------------------------------------------------------------------------

//		if(f) {
//			System.out.println("Yes");
//		} else {
//			System.out.println("No");
//		}

		System.out.println(ans);

		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) boolean f = false; f false int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc double d = sc.nextDouble(); d sc.nextDouble() sc.nextDouble sc long[] a = new long[n]; a new long[n] n long[] b = new long[n]; b new long[n] n for (int i = 0; i < n; i++) {
			a[i]= sc.nextLong();
			b[i]= sc.nextLong();
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			a[i]= sc.nextLong();
			b[i]= sc.nextLong();
		} {
			a[i]= sc.nextLong();
			b[i]= sc.nextLong();
		} a[i]= sc.nextLong() a[i] a i sc.nextLong() sc.nextLong sc b[i]= sc.nextLong() b[i] b i sc.nextLong() sc.nextLong sc for(int i = 0; i < n; i++) {
			long tmpa = (a[i] * a[i]);
			long tmpb = (b[i] * b[i]);
			long tmp = tmpa + tmpb;
			double calc = Math.sqrt(tmp);
			System.err.println(tmpb);
			if(d * d >= tmp) {
				ans++;
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			long tmpa = (a[i] * a[i]);
			long tmpb = (b[i] * b[i]);
			long tmp = tmpa + tmpb;
			double calc = Math.sqrt(tmp);
			System.err.println(tmpb);
			if(d * d >= tmp) {
				ans++;
			}
		} {
			long tmpa = (a[i] * a[i]);
			long tmpb = (b[i] * b[i]);
			long tmp = tmpa + tmpb;
			double calc = Math.sqrt(tmp);
			System.err.println(tmpb);
			if(d * d >= tmp) {
				ans++;
			}
		} long tmpa = (a[i] * a[i]); tmpa (a[i] * a[i]) a[i] a i a[i] a i long tmpb = (b[i] * b[i]); tmpb (b[i] * b[i]) b[i] b i b[i] b i long tmp = tmpa + tmpb; tmp tmpa + tmpb tmpa tmpb double calc = Math.sqrt(tmp); calc Math.sqrt(tmp) Math.sqrt Math tmp System.err.println(tmpb) System.err.println System.err System System.err tmpb if(d * d >= tmp) {
				ans++;
			} d * d >= tmp d * d d d tmp {
				ans++;
			} ans++ ans System.out.println(ans) System.out.println System.out System System.out ans sc.close() sc.close sc String[] args args public class Main {
//	final static int MOD = 1000000007;

	public static long ans = 0;

	public static void main(String[] args) {

//		int ans = 0;
		Scanner sc = new Scanner(System.in);
		boolean f = false;

		int n = sc.nextInt();
		double d = sc.nextDouble();

		long[] a = new long[n];
		long[] b = new long[n];
		for (int i = 0; i < n; i++) {
			a[i]= sc.nextLong();
			b[i]= sc.nextLong();
		}


		//-------------------------------------------------------------------------------------

		for(int i = 0; i < n; i++) {
			long tmpa = (a[i] * a[i]);
			long tmpb = (b[i] * b[i]);
			long tmp = tmpa + tmpb;
			double calc = Math.sqrt(tmp);
			System.err.println(tmpb);
			if(d * d >= tmp) {
				ans++;
			}
		}


		//-------------------------------------------------------------------------------------

//		if(f) {
//			System.out.println("Yes");
//		} else {
//			System.out.println("No");
//		}

		System.out.println(ans);

		sc.close();
	}



} public class Main {
//	final static int MOD = 1000000007;

	public static long ans = 0;

	public static void main(String[] args) {

//		int ans = 0;
		Scanner sc = new Scanner(System.in);
		boolean f = false;

		int n = sc.nextInt();
		double d = sc.nextDouble();

		long[] a = new long[n];
		long[] b = new long[n];
		for (int i = 0; i < n; i++) {
			a[i]= sc.nextLong();
			b[i]= sc.nextLong();
		}


		//-------------------------------------------------------------------------------------

		for(int i = 0; i < n; i++) {
			long tmpa = (a[i] * a[i]);
			long tmpb = (b[i] * b[i]);
			long tmp = tmpa + tmpb;
			double calc = Math.sqrt(tmp);
			System.err.println(tmpb);
			if(d * d >= tmp) {
				ans++;
			}
		}


		//-------------------------------------------------------------------------------------

//		if(f) {
//			System.out.println("Yes");
//		} else {
//			System.out.println("No");
//		}

		System.out.println(ans);

		sc.close();
	}



} Main
import java.util.Scanner;


public class Main {
//	final static int MOD = 1000000007;

	public static long ans = 0;

	public static void main(String[] args) {

//		int ans = 0;
		Scanner sc = new Scanner(System.in);
		boolean f = false;

		int n = sc.nextInt();
		double d = sc.nextDouble();

		long[] a = new long[n];
		long[] b = new long[n];
		for (int i = 0; i < n; i++) {
			a[i]= sc.nextLong();
			b[i]= sc.nextLong();
		}


		//-------------------------------------------------------------------------------------

		for(int i = 0; i < n; i++) {
			long tmpa = (a[i] * a[i]);
			long tmpb = (b[i] * b[i]);
			long tmp = tmpa + tmpb;
			double calc = Math.sqrt(tmp);
			System.err.println(tmpb);
			if(d * d >= tmp) {
				ans++;
			}
		}


		//-------------------------------------------------------------------------------------

//		if(f) {
//			System.out.println("Yes");
//		} else {
//			System.out.println("No");
//		}

		System.out.println(ans);

		sc.close();
	}



}