import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int t = scan.nextInt();
		Double d = scan.nextDouble();
		int count = 0;
		while (t-- > 0) {
			Double a = scan.nextDouble();
			Double b = scan.nextDouble();
			Double dis = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));
			if (dis <= d) {
				count++;
			}
		}
		System.out.println(count);
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int t = scan.nextInt();
		Double d = scan.nextDouble();
		int count = 0;
		while (t-- > 0) {
			Double a = scan.nextDouble();
			Double b = scan.nextDouble();
			Double dis = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));
			if (dis <= d) {
				count++;
			}
		}
		System.out.println(count);
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int t = scan.nextInt();
		Double d = scan.nextDouble();
		int count = 0;
		while (t-- > 0) {
			Double a = scan.nextDouble();
			Double b = scan.nextDouble();
			Double dis = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));
			if (dis <= d) {
				count++;
			}
		}
		System.out.println(count);
	} main {
		Scanner scan = new Scanner(System.in);
		int t = scan.nextInt();
		Double d = scan.nextDouble();
		int count = 0;
		while (t-- > 0) {
			Double a = scan.nextDouble();
			Double b = scan.nextDouble();
			Double dis = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));
			if (dis <= d) {
				count++;
			}
		}
		System.out.println(count);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int t = scan.nextInt(); t scan.nextInt() scan.nextInt scan Double d = scan.nextDouble(); d scan.nextDouble() scan.nextDouble scan int count = 0; count 0 while (t-- > 0) {
			Double a = scan.nextDouble();
			Double b = scan.nextDouble();
			Double dis = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));
			if (dis <= d) {
				count++;
			}
		} t-- > 0 t-- t 0 {
			Double a = scan.nextDouble();
			Double b = scan.nextDouble();
			Double dis = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));
			if (dis <= d) {
				count++;
			}
		} Double a = scan.nextDouble(); a scan.nextDouble() scan.nextDouble scan Double b = scan.nextDouble(); b scan.nextDouble() scan.nextDouble scan Double dis = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)); dis Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)) Math.sqrt Math Math.pow(a, 2) + Math.pow(b, 2) Math.pow(a, 2) Math.pow Math a 2 Math.pow(b, 2) Math.pow Math b 2 if (dis <= d) {
				count++;
			} dis <= d dis d {
				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 scan = new Scanner(System.in);
		int t = scan.nextInt();
		Double d = scan.nextDouble();
		int count = 0;
		while (t-- > 0) {
			Double a = scan.nextDouble();
			Double b = scan.nextDouble();
			Double dis = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));
			if (dis <= d) {
				count++;
			}
		}
		System.out.println(count);
	}
} public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int t = scan.nextInt();
		Double d = scan.nextDouble();
		int count = 0;
		while (t-- > 0) {
			Double a = scan.nextDouble();
			Double b = scan.nextDouble();
			Double dis = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));
			if (dis <= d) {
				count++;
			}
		}
		System.out.println(count);
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int t = scan.nextInt();
		Double d = scan.nextDouble();
		int count = 0;
		while (t-- > 0) {
			Double a = scan.nextDouble();
			Double b = scan.nextDouble();
			Double dis = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));
			if (dis <= d) {
				count++;
			}
		}
		System.out.println(count);
	}
}
