import java .util.Scanner;
public class Main {
public static void main(String[] args) {
	Scanner sc = new Scanner (System.in);

	int inputN = sc.nextInt();
	int inputD = sc.nextInt();
	int count = 0;

	for(int i = 0; i < inputN; i++) {
		int xi = sc.nextInt();
		int yi = sc.nextInt();

		double xixi = Math.pow(xi, 2);

		double yiyi = Math.pow(yi, 2);

		double root = xixi + yiyi;

		 double r =Math.sqrt(root);

		if(r <= inputD) {
			count++;
		}
	}
	System.out.println(count);
}
} import java .util.Scanner; Scanner java .util public class Main {
public static void main(String[] args) {
	Scanner sc = new Scanner (System.in);

	int inputN = sc.nextInt();
	int inputD = sc.nextInt();
	int count = 0;

	for(int i = 0; i < inputN; i++) {
		int xi = sc.nextInt();
		int yi = sc.nextInt();

		double xixi = Math.pow(xi, 2);

		double yiyi = Math.pow(yi, 2);

		double root = xixi + yiyi;

		 double r =Math.sqrt(root);

		if(r <= inputD) {
			count++;
		}
	}
	System.out.println(count);
}
} Main public static void main(String[] args) {
	Scanner sc = new Scanner (System.in);

	int inputN = sc.nextInt();
	int inputD = sc.nextInt();
	int count = 0;

	for(int i = 0; i < inputN; i++) {
		int xi = sc.nextInt();
		int yi = sc.nextInt();

		double xixi = Math.pow(xi, 2);

		double yiyi = Math.pow(yi, 2);

		double root = xixi + yiyi;

		 double r =Math.sqrt(root);

		if(r <= inputD) {
			count++;
		}
	}
	System.out.println(count);
} main {
	Scanner sc = new Scanner (System.in);

	int inputN = sc.nextInt();
	int inputD = sc.nextInt();
	int count = 0;

	for(int i = 0; i < inputN; i++) {
		int xi = sc.nextInt();
		int yi = sc.nextInt();

		double xixi = Math.pow(xi, 2);

		double yiyi = Math.pow(yi, 2);

		double root = xixi + yiyi;

		 double r =Math.sqrt(root);

		if(r <= inputD) {
			count++;
		}
	}
	System.out.println(count);
} Scanner sc = new Scanner (System.in); sc new Scanner (System.in) int inputN = sc.nextInt(); inputN sc.nextInt() sc.nextInt sc int inputD = sc.nextInt(); inputD sc.nextInt() sc.nextInt sc int count = 0; count 0 for(int i = 0; i < inputN; i++) {
		int xi = sc.nextInt();
		int yi = sc.nextInt();

		double xixi = Math.pow(xi, 2);

		double yiyi = Math.pow(yi, 2);

		double root = xixi + yiyi;

		 double r =Math.sqrt(root);

		if(r <= inputD) {
			count++;
		}
	} int i = 0; int i = 0; i 0 i < inputN i inputN i++ i++ i {
		int xi = sc.nextInt();
		int yi = sc.nextInt();

		double xixi = Math.pow(xi, 2);

		double yiyi = Math.pow(yi, 2);

		double root = xixi + yiyi;

		 double r =Math.sqrt(root);

		if(r <= inputD) {
			count++;
		}
	} {
		int xi = sc.nextInt();
		int yi = sc.nextInt();

		double xixi = Math.pow(xi, 2);

		double yiyi = Math.pow(yi, 2);

		double root = xixi + yiyi;

		 double r =Math.sqrt(root);

		if(r <= inputD) {
			count++;
		}
	} int xi = sc.nextInt(); xi sc.nextInt() sc.nextInt sc int yi = sc.nextInt(); yi sc.nextInt() sc.nextInt sc double xixi = Math.pow(xi, 2); xixi Math.pow(xi, 2) Math.pow Math xi 2 double yiyi = Math.pow(yi, 2); yiyi Math.pow(yi, 2) Math.pow Math yi 2 double root = xixi + yiyi; root xixi + yiyi xixi yiyi double r =Math.sqrt(root); r Math.sqrt(root) Math.sqrt Math root if(r <= inputD) {
			count++;
		} r <= inputD r inputD {
			count++;
		} count++ count 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) {
	Scanner sc = new Scanner (System.in);

	int inputN = sc.nextInt();
	int inputD = sc.nextInt();
	int count = 0;

	for(int i = 0; i < inputN; i++) {
		int xi = sc.nextInt();
		int yi = sc.nextInt();

		double xixi = Math.pow(xi, 2);

		double yiyi = Math.pow(yi, 2);

		double root = xixi + yiyi;

		 double r =Math.sqrt(root);

		if(r <= inputD) {
			count++;
		}
	}
	System.out.println(count);
}
} public class Main {
public static void main(String[] args) {
	Scanner sc = new Scanner (System.in);

	int inputN = sc.nextInt();
	int inputD = sc.nextInt();
	int count = 0;

	for(int i = 0; i < inputN; i++) {
		int xi = sc.nextInt();
		int yi = sc.nextInt();

		double xixi = Math.pow(xi, 2);

		double yiyi = Math.pow(yi, 2);

		double root = xixi + yiyi;

		 double r =Math.sqrt(root);

		if(r <= inputD) {
			count++;
		}
	}
	System.out.println(count);
}
} Main
import java .util.Scanner;
public class Main {
public static void main(String[] args) {
	Scanner sc = new Scanner (System.in);

	int inputN = sc.nextInt();
	int inputD = sc.nextInt();
	int count = 0;

	for(int i = 0; i < inputN; i++) {
		int xi = sc.nextInt();
		int yi = sc.nextInt();

		double xixi = Math.pow(xi, 2);

		double yiyi = Math.pow(yi, 2);

		double root = xixi + yiyi;

		 double r =Math.sqrt(root);

		if(r <= inputD) {
			count++;
		}
	}
	System.out.println(count);
}
}
