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

public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int ans = 0;
		int n = scanner.nextInt();
		double d = scanner.nextInt();
		List<Integer> x_y = new ArrayList<>();
		List<List<Integer>> x_y_set = new ArrayList<>();
		for (int i = 0; i < n; i++) {
			x_y.add(scanner.nextInt());
			x_y.add(scanner.nextInt());
			x_y_set.add(new ArrayList<>(x_y));
			x_y.clear();
		}
		double distance =0;
		for (int i = 0; i < n; i++) {
			distance = Math.sqrt(Math.pow(x_y_set.get(i).get(0),2)
									+ Math.pow(x_y_set.get(i).get(1),2));
			if(distance <= d) {
				ans+=1;
			}

		}
		System.out.println(ans);
		scanner.close();
	}
} 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) {
		Scanner scanner = new Scanner(System.in);
		int ans = 0;
		int n = scanner.nextInt();
		double d = scanner.nextInt();
		List<Integer> x_y = new ArrayList<>();
		List<List<Integer>> x_y_set = new ArrayList<>();
		for (int i = 0; i < n; i++) {
			x_y.add(scanner.nextInt());
			x_y.add(scanner.nextInt());
			x_y_set.add(new ArrayList<>(x_y));
			x_y.clear();
		}
		double distance =0;
		for (int i = 0; i < n; i++) {
			distance = Math.sqrt(Math.pow(x_y_set.get(i).get(0),2)
									+ Math.pow(x_y_set.get(i).get(1),2));
			if(distance <= d) {
				ans+=1;
			}

		}
		System.out.println(ans);
		scanner.close();
	}
} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int ans = 0;
		int n = scanner.nextInt();
		double d = scanner.nextInt();
		List<Integer> x_y = new ArrayList<>();
		List<List<Integer>> x_y_set = new ArrayList<>();
		for (int i = 0; i < n; i++) {
			x_y.add(scanner.nextInt());
			x_y.add(scanner.nextInt());
			x_y_set.add(new ArrayList<>(x_y));
			x_y.clear();
		}
		double distance =0;
		for (int i = 0; i < n; i++) {
			distance = Math.sqrt(Math.pow(x_y_set.get(i).get(0),2)
									+ Math.pow(x_y_set.get(i).get(1),2));
			if(distance <= d) {
				ans+=1;
			}

		}
		System.out.println(ans);
		scanner.close();
	} main {
		Scanner scanner = new Scanner(System.in);
		int ans = 0;
		int n = scanner.nextInt();
		double d = scanner.nextInt();
		List<Integer> x_y = new ArrayList<>();
		List<List<Integer>> x_y_set = new ArrayList<>();
		for (int i = 0; i < n; i++) {
			x_y.add(scanner.nextInt());
			x_y.add(scanner.nextInt());
			x_y_set.add(new ArrayList<>(x_y));
			x_y.clear();
		}
		double distance =0;
		for (int i = 0; i < n; i++) {
			distance = Math.sqrt(Math.pow(x_y_set.get(i).get(0),2)
									+ Math.pow(x_y_set.get(i).get(1),2));
			if(distance <= d) {
				ans+=1;
			}

		}
		System.out.println(ans);
		scanner.close();
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int ans = 0; ans 0 int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner double d = scanner.nextInt(); d scanner.nextInt() scanner.nextInt scanner List<Integer> x_y = new ArrayList<>(); x_y new ArrayList<>() List<List<Integer>> x_y_set = new ArrayList<>(); x_y_set new ArrayList<>() for (int i = 0; i < n; i++) {
			x_y.add(scanner.nextInt());
			x_y.add(scanner.nextInt());
			x_y_set.add(new ArrayList<>(x_y));
			x_y.clear();
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			x_y.add(scanner.nextInt());
			x_y.add(scanner.nextInt());
			x_y_set.add(new ArrayList<>(x_y));
			x_y.clear();
		} {
			x_y.add(scanner.nextInt());
			x_y.add(scanner.nextInt());
			x_y_set.add(new ArrayList<>(x_y));
			x_y.clear();
		} x_y.add(scanner.nextInt()) x_y.add x_y scanner.nextInt() scanner.nextInt scanner x_y.add(scanner.nextInt()) x_y.add x_y scanner.nextInt() scanner.nextInt scanner x_y_set.add(new ArrayList<>(x_y)) x_y_set.add x_y_set new ArrayList<>(x_y) x_y.clear() x_y.clear x_y double distance =0; distance 0 for (int i = 0; i < n; i++) {
			distance = Math.sqrt(Math.pow(x_y_set.get(i).get(0),2)
									+ Math.pow(x_y_set.get(i).get(1),2));
			if(distance <= d) {
				ans+=1;
			}

		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			distance = Math.sqrt(Math.pow(x_y_set.get(i).get(0),2)
									+ Math.pow(x_y_set.get(i).get(1),2));
			if(distance <= d) {
				ans+=1;
			}

		} {
			distance = Math.sqrt(Math.pow(x_y_set.get(i).get(0),2)
									+ Math.pow(x_y_set.get(i).get(1),2));
			if(distance <= d) {
				ans+=1;
			}

		} distance = Math.sqrt(Math.pow(x_y_set.get(i).get(0),2)
									+ Math.pow(x_y_set.get(i).get(1),2)) distance Math.sqrt(Math.pow(x_y_set.get(i).get(0),2)
									+ Math.pow(x_y_set.get(i).get(1),2)) Math.sqrt Math Math.pow(x_y_set.get(i).get(0),2)
									+ Math.pow(x_y_set.get(i).get(1),2) Math.pow(x_y_set.get(i).get(0),2) Math.pow Math x_y_set.get(i).get(0) x_y_set.get(i).get x_y_set.get(i) x_y_set.get x_y_set i 0 2 Math.pow(x_y_set.get(i).get(1),2) Math.pow Math x_y_set.get(i).get(1) x_y_set.get(i).get x_y_set.get(i) x_y_set.get x_y_set i 1 2 if(distance <= d) {
				ans+=1;
			} distance <= d distance d {
				ans+=1;
			} ans+=1 ans 1 System.out.println(ans) System.out.println System.out System System.out ans scanner.close() scanner.close scanner String[] args args public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int ans = 0;
		int n = scanner.nextInt();
		double d = scanner.nextInt();
		List<Integer> x_y = new ArrayList<>();
		List<List<Integer>> x_y_set = new ArrayList<>();
		for (int i = 0; i < n; i++) {
			x_y.add(scanner.nextInt());
			x_y.add(scanner.nextInt());
			x_y_set.add(new ArrayList<>(x_y));
			x_y.clear();
		}
		double distance =0;
		for (int i = 0; i < n; i++) {
			distance = Math.sqrt(Math.pow(x_y_set.get(i).get(0),2)
									+ Math.pow(x_y_set.get(i).get(1),2));
			if(distance <= d) {
				ans+=1;
			}

		}
		System.out.println(ans);
		scanner.close();
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int ans = 0;
		int n = scanner.nextInt();
		double d = scanner.nextInt();
		List<Integer> x_y = new ArrayList<>();
		List<List<Integer>> x_y_set = new ArrayList<>();
		for (int i = 0; i < n; i++) {
			x_y.add(scanner.nextInt());
			x_y.add(scanner.nextInt());
			x_y_set.add(new ArrayList<>(x_y));
			x_y.clear();
		}
		double distance =0;
		for (int i = 0; i < n; i++) {
			distance = Math.sqrt(Math.pow(x_y_set.get(i).get(0),2)
									+ Math.pow(x_y_set.get(i).get(1),2));
			if(distance <= d) {
				ans+=1;
			}

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

public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int ans = 0;
		int n = scanner.nextInt();
		double d = scanner.nextInt();
		List<Integer> x_y = new ArrayList<>();
		List<List<Integer>> x_y_set = new ArrayList<>();
		for (int i = 0; i < n; i++) {
			x_y.add(scanner.nextInt());
			x_y.add(scanner.nextInt());
			x_y_set.add(new ArrayList<>(x_y));
			x_y.clear();
		}
		double distance =0;
		for (int i = 0; i < n; i++) {
			distance = Math.sqrt(Math.pow(x_y_set.get(i).get(0),2)
									+ Math.pow(x_y_set.get(i).get(1),2));
			if(distance <= d) {
				ans+=1;
			}

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