
import java.util.*;
public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int count = 0;
		double d = scan.nextDouble();
		for(int i = 0; i < n; i++) {
			double x = scan.nextDouble();
			double y = scan.nextDouble();
			double res = solve(x,y);
			if(res <= d) {
				count++;
			}
		}
		System.out.println(count);
		
		
	}
	public static double solve(double x,double y) {
		double a = Math.pow(x, 2);
		double b = Math.pow(y, 2);
		double c = a + b;
		double res = Math.sqrt(c);
		return res;
	}

} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int count = 0;
		double d = scan.nextDouble();
		for(int i = 0; i < n; i++) {
			double x = scan.nextDouble();
			double y = scan.nextDouble();
			double res = solve(x,y);
			if(res <= d) {
				count++;
			}
		}
		System.out.println(count);
		
		
	}
	public static double solve(double x,double y) {
		double a = Math.pow(x, 2);
		double b = Math.pow(y, 2);
		double c = a + b;
		double res = Math.sqrt(c);
		return res;
	}

} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int count = 0;
		double d = scan.nextDouble();
		for(int i = 0; i < n; i++) {
			double x = scan.nextDouble();
			double y = scan.nextDouble();
			double res = solve(x,y);
			if(res <= d) {
				count++;
			}
		}
		System.out.println(count);
		
		
	} main {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int count = 0;
		double d = scan.nextDouble();
		for(int i = 0; i < n; i++) {
			double x = scan.nextDouble();
			double y = scan.nextDouble();
			double res = solve(x,y);
			if(res <= d) {
				count++;
			}
		}
		System.out.println(count);
		
		
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int count = 0; count 0 double d = scan.nextDouble(); d scan.nextDouble() scan.nextDouble scan for(int i = 0; i < n; i++) {
			double x = scan.nextDouble();
			double y = scan.nextDouble();
			double res = solve(x,y);
			if(res <= d) {
				count++;
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			double x = scan.nextDouble();
			double y = scan.nextDouble();
			double res = solve(x,y);
			if(res <= d) {
				count++;
			}
		} {
			double x = scan.nextDouble();
			double y = scan.nextDouble();
			double res = solve(x,y);
			if(res <= d) {
				count++;
			}
		} double x = scan.nextDouble(); x scan.nextDouble() scan.nextDouble scan double y = scan.nextDouble(); y scan.nextDouble() scan.nextDouble scan double res = solve(x,y); res solve(x,y) solve x y if(res <= d) {
				count++;
			} res <= d res d {
				count++;
			} count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args public static double solve(double x,double y) {
		double a = Math.pow(x, 2);
		double b = Math.pow(y, 2);
		double c = a + b;
		double res = Math.sqrt(c);
		return res;
	} solve {
		double a = Math.pow(x, 2);
		double b = Math.pow(y, 2);
		double c = a + b;
		double res = Math.sqrt(c);
		return res;
	} double a = Math.pow(x, 2); a Math.pow(x, 2) Math.pow Math x 2 double b = Math.pow(y, 2); b Math.pow(y, 2) Math.pow Math y 2 double c = a + b; c a + b a b double res = Math.sqrt(c); res Math.sqrt(c) Math.sqrt Math c return res; res double x x double y y public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int count = 0;
		double d = scan.nextDouble();
		for(int i = 0; i < n; i++) {
			double x = scan.nextDouble();
			double y = scan.nextDouble();
			double res = solve(x,y);
			if(res <= d) {
				count++;
			}
		}
		System.out.println(count);
		
		
	}
	public static double solve(double x,double y) {
		double a = Math.pow(x, 2);
		double b = Math.pow(y, 2);
		double c = a + b;
		double res = Math.sqrt(c);
		return res;
	}

} public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int count = 0;
		double d = scan.nextDouble();
		for(int i = 0; i < n; i++) {
			double x = scan.nextDouble();
			double y = scan.nextDouble();
			double res = solve(x,y);
			if(res <= d) {
				count++;
			}
		}
		System.out.println(count);
		
		
	}
	public static double solve(double x,double y) {
		double a = Math.pow(x, 2);
		double b = Math.pow(y, 2);
		double c = a + b;
		double res = Math.sqrt(c);
		return res;
	}

} Main

import java.util.*;
public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int count = 0;
		double d = scan.nextDouble();
		for(int i = 0; i < n; i++) {
			double x = scan.nextDouble();
			double y = scan.nextDouble();
			double res = solve(x,y);
			if(res <= d) {
				count++;
			}
		}
		System.out.println(count);
		
		
	}
	public static double solve(double x,double y) {
		double a = Math.pow(x, 2);
		double b = Math.pow(y, 2);
		double c = a + b;
		double res = Math.sqrt(c);
		return res;
	}

}
