import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		try(Scanner scanner = new Scanner(System.in)) {
			String data1 = scanner.nextLine();

			String[] arr = data1.split(" ");

			int N = Integer.parseInt(arr[0]);
			int D = Integer.parseInt(arr[1]);

			List<String> list = new ArrayList<String>();
			for (int i = 0; i < N; i++) {
				String data = scanner.nextLine();
				list.add(data);
			}

			int ans = 0;
			for (int i = 0; i < list.size(); i++) {

				String[] arr1 = list.get(i).split(" ");
				double x = Double.parseDouble(arr1[0]);
				double y = Double.parseDouble(arr1[1]);

				double xx = Math.pow(x, 2);
				double yy = Math.pow(y, 2);

				double s = Math.sqrt(xx + yy);
				if (s <= D) {
					ans++;
				}
			}

			System.out.println(ans);
		}
	}
} import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		try(Scanner scanner = new Scanner(System.in)) {
			String data1 = scanner.nextLine();

			String[] arr = data1.split(" ");

			int N = Integer.parseInt(arr[0]);
			int D = Integer.parseInt(arr[1]);

			List<String> list = new ArrayList<String>();
			for (int i = 0; i < N; i++) {
				String data = scanner.nextLine();
				list.add(data);
			}

			int ans = 0;
			for (int i = 0; i < list.size(); i++) {

				String[] arr1 = list.get(i).split(" ");
				double x = Double.parseDouble(arr1[0]);
				double y = Double.parseDouble(arr1[1]);

				double xx = Math.pow(x, 2);
				double yy = Math.pow(y, 2);

				double s = Math.sqrt(xx + yy);
				if (s <= D) {
					ans++;
				}
			}

			System.out.println(ans);
		}
	}
} Main public static void main(String[] args) {
		try(Scanner scanner = new Scanner(System.in)) {
			String data1 = scanner.nextLine();

			String[] arr = data1.split(" ");

			int N = Integer.parseInt(arr[0]);
			int D = Integer.parseInt(arr[1]);

			List<String> list = new ArrayList<String>();
			for (int i = 0; i < N; i++) {
				String data = scanner.nextLine();
				list.add(data);
			}

			int ans = 0;
			for (int i = 0; i < list.size(); i++) {

				String[] arr1 = list.get(i).split(" ");
				double x = Double.parseDouble(arr1[0]);
				double y = Double.parseDouble(arr1[1]);

				double xx = Math.pow(x, 2);
				double yy = Math.pow(y, 2);

				double s = Math.sqrt(xx + yy);
				if (s <= D) {
					ans++;
				}
			}

			System.out.println(ans);
		}
	} main {
		try(Scanner scanner = new Scanner(System.in)) {
			String data1 = scanner.nextLine();

			String[] arr = data1.split(" ");

			int N = Integer.parseInt(arr[0]);
			int D = Integer.parseInt(arr[1]);

			List<String> list = new ArrayList<String>();
			for (int i = 0; i < N; i++) {
				String data = scanner.nextLine();
				list.add(data);
			}

			int ans = 0;
			for (int i = 0; i < list.size(); i++) {

				String[] arr1 = list.get(i).split(" ");
				double x = Double.parseDouble(arr1[0]);
				double y = Double.parseDouble(arr1[1]);

				double xx = Math.pow(x, 2);
				double yy = Math.pow(y, 2);

				double s = Math.sqrt(xx + yy);
				if (s <= D) {
					ans++;
				}
			}

			System.out.println(ans);
		}
	} try(Scanner scanner = new Scanner(System.in)) {
			String data1 = scanner.nextLine();

			String[] arr = data1.split(" ");

			int N = Integer.parseInt(arr[0]);
			int D = Integer.parseInt(arr[1]);

			List<String> list = new ArrayList<String>();
			for (int i = 0; i < N; i++) {
				String data = scanner.nextLine();
				list.add(data);
			}

			int ans = 0;
			for (int i = 0; i < list.size(); i++) {

				String[] arr1 = list.get(i).split(" ");
				double x = Double.parseDouble(arr1[0]);
				double y = Double.parseDouble(arr1[1]);

				double xx = Math.pow(x, 2);
				double yy = Math.pow(y, 2);

				double s = Math.sqrt(xx + yy);
				if (s <= D) {
					ans++;
				}
			}

			System.out.println(ans);
		} {
			String data1 = scanner.nextLine();

			String[] arr = data1.split(" ");

			int N = Integer.parseInt(arr[0]);
			int D = Integer.parseInt(arr[1]);

			List<String> list = new ArrayList<String>();
			for (int i = 0; i < N; i++) {
				String data = scanner.nextLine();
				list.add(data);
			}

			int ans = 0;
			for (int i = 0; i < list.size(); i++) {

				String[] arr1 = list.get(i).split(" ");
				double x = Double.parseDouble(arr1[0]);
				double y = Double.parseDouble(arr1[1]);

				double xx = Math.pow(x, 2);
				double yy = Math.pow(y, 2);

				double s = Math.sqrt(xx + yy);
				if (s <= D) {
					ans++;
				}
			}

			System.out.println(ans);
		} Scanner scanner = new Scanner(System.in) Scanner scanner = new Scanner(System.in) new Scanner(System.in) String data1 = scanner.nextLine(); data1 scanner.nextLine() scanner.nextLine scanner String[] arr = data1.split(" "); arr data1.split(" ") data1.split data1 " " int N = Integer.parseInt(arr[0]); N Integer.parseInt(arr[0]) Integer.parseInt Integer arr[0] arr 0 int D = Integer.parseInt(arr[1]); D Integer.parseInt(arr[1]) Integer.parseInt Integer arr[1] arr 1 List<String> list = new ArrayList<String>(); list new ArrayList<String>() for (int i = 0; i < N; i++) {
				String data = scanner.nextLine();
				list.add(data);
			} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
				String data = scanner.nextLine();
				list.add(data);
			} {
				String data = scanner.nextLine();
				list.add(data);
			} String data = scanner.nextLine(); data scanner.nextLine() scanner.nextLine scanner list.add(data) list.add list data int ans = 0; ans 0 for (int i = 0; i < list.size(); i++) {

				String[] arr1 = list.get(i).split(" ");
				double x = Double.parseDouble(arr1[0]);
				double y = Double.parseDouble(arr1[1]);

				double xx = Math.pow(x, 2);
				double yy = Math.pow(y, 2);

				double s = Math.sqrt(xx + yy);
				if (s <= D) {
					ans++;
				}
			} int i = 0; int i = 0; i 0 i < list.size() i list.size() list.size list i++ i++ i {

				String[] arr1 = list.get(i).split(" ");
				double x = Double.parseDouble(arr1[0]);
				double y = Double.parseDouble(arr1[1]);

				double xx = Math.pow(x, 2);
				double yy = Math.pow(y, 2);

				double s = Math.sqrt(xx + yy);
				if (s <= D) {
					ans++;
				}
			} {

				String[] arr1 = list.get(i).split(" ");
				double x = Double.parseDouble(arr1[0]);
				double y = Double.parseDouble(arr1[1]);

				double xx = Math.pow(x, 2);
				double yy = Math.pow(y, 2);

				double s = Math.sqrt(xx + yy);
				if (s <= D) {
					ans++;
				}
			} String[] arr1 = list.get(i).split(" "); arr1 list.get(i).split(" ") list.get(i).split list.get(i) list.get list i " " double x = Double.parseDouble(arr1[0]); x Double.parseDouble(arr1[0]) Double.parseDouble Double arr1[0] arr1 0 double y = Double.parseDouble(arr1[1]); y Double.parseDouble(arr1[1]) Double.parseDouble Double arr1[1] arr1 1 double xx = Math.pow(x, 2); xx Math.pow(x, 2) Math.pow Math x 2 double yy = Math.pow(y, 2); yy Math.pow(y, 2) Math.pow Math y 2 double s = Math.sqrt(xx + yy); s Math.sqrt(xx + yy) Math.sqrt Math xx + yy xx yy if (s <= D) {
					ans++;
				} s <= D s D {
					ans++;
				} ans++ ans System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {

	public static void main(String[] args) {
		try(Scanner scanner = new Scanner(System.in)) {
			String data1 = scanner.nextLine();

			String[] arr = data1.split(" ");

			int N = Integer.parseInt(arr[0]);
			int D = Integer.parseInt(arr[1]);

			List<String> list = new ArrayList<String>();
			for (int i = 0; i < N; i++) {
				String data = scanner.nextLine();
				list.add(data);
			}

			int ans = 0;
			for (int i = 0; i < list.size(); i++) {

				String[] arr1 = list.get(i).split(" ");
				double x = Double.parseDouble(arr1[0]);
				double y = Double.parseDouble(arr1[1]);

				double xx = Math.pow(x, 2);
				double yy = Math.pow(y, 2);

				double s = Math.sqrt(xx + yy);
				if (s <= D) {
					ans++;
				}
			}

			System.out.println(ans);
		}
	}
} public class Main {

	public static void main(String[] args) {
		try(Scanner scanner = new Scanner(System.in)) {
			String data1 = scanner.nextLine();

			String[] arr = data1.split(" ");

			int N = Integer.parseInt(arr[0]);
			int D = Integer.parseInt(arr[1]);

			List<String> list = new ArrayList<String>();
			for (int i = 0; i < N; i++) {
				String data = scanner.nextLine();
				list.add(data);
			}

			int ans = 0;
			for (int i = 0; i < list.size(); i++) {

				String[] arr1 = list.get(i).split(" ");
				double x = Double.parseDouble(arr1[0]);
				double y = Double.parseDouble(arr1[1]);

				double xx = Math.pow(x, 2);
				double yy = Math.pow(y, 2);

				double s = Math.sqrt(xx + yy);
				if (s <= D) {
					ans++;
				}
			}

			System.out.println(ans);
		}
	}
} Main
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		try(Scanner scanner = new Scanner(System.in)) {
			String data1 = scanner.nextLine();

			String[] arr = data1.split(" ");

			int N = Integer.parseInt(arr[0]);
			int D = Integer.parseInt(arr[1]);

			List<String> list = new ArrayList<String>();
			for (int i = 0; i < N; i++) {
				String data = scanner.nextLine();
				list.add(data);
			}

			int ans = 0;
			for (int i = 0; i < list.size(); i++) {

				String[] arr1 = list.get(i).split(" ");
				double x = Double.parseDouble(arr1[0]);
				double y = Double.parseDouble(arr1[1]);

				double xx = Math.pow(x, 2);
				double yy = Math.pow(y, 2);

				double s = Math.sqrt(xx + yy);
				if (s <= D) {
					ans++;
				}
			}

			System.out.println(ans);
		}
	}
}