import java.util.*;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int d = scan.nextInt();
//		int[][] xy = new int[n][2];
		int count = 0;
		for(int i = 0; i < n; i++) {
			if(cal(scan.nextLong(), scan.nextLong()) <= d) {
				count++;
			}
		}
		System.out.println(count);
	}
	
	private static double cal(long x, long y) {
		return Math.sqrt(x*x + y*y);
	}

} 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 d = scan.nextInt();
//		int[][] xy = new int[n][2];
		int count = 0;
		for(int i = 0; i < n; i++) {
			if(cal(scan.nextLong(), scan.nextLong()) <= d) {
				count++;
			}
		}
		System.out.println(count);
	}
	
	private static double cal(long x, long y) {
		return Math.sqrt(x*x + y*y);
	}

} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int d = scan.nextInt();
//		int[][] xy = new int[n][2];
		int count = 0;
		for(int i = 0; i < n; i++) {
			if(cal(scan.nextLong(), scan.nextLong()) <= d) {
				count++;
			}
		}
		System.out.println(count);
	} main {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int d = scan.nextInt();
//		int[][] xy = new int[n][2];
		int count = 0;
		for(int i = 0; i < n; i++) {
			if(cal(scan.nextLong(), scan.nextLong()) <= 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 d = scan.nextInt(); d scan.nextInt() scan.nextInt scan int count = 0; count 0 for(int i = 0; i < n; i++) {
			if(cal(scan.nextLong(), scan.nextLong()) <= d) {
				count++;
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			if(cal(scan.nextLong(), scan.nextLong()) <= d) {
				count++;
			}
		} {
			if(cal(scan.nextLong(), scan.nextLong()) <= d) {
				count++;
			}
		} if(cal(scan.nextLong(), scan.nextLong()) <= d) {
				count++;
			} cal(scan.nextLong(), scan.nextLong()) <= d cal(scan.nextLong(), scan.nextLong()) cal scan.nextLong() scan.nextLong scan scan.nextLong() scan.nextLong scan d {
				count++;
			} count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args private static double cal(long x, long y) {
		return Math.sqrt(x*x + y*y);
	} cal {
		return Math.sqrt(x*x + y*y);
	} return Math.sqrt(x*x + y*y); Math.sqrt(x*x + y*y) Math.sqrt Math x*x + y*y x*x x x y*y y y long x x long y y public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int d = scan.nextInt();
//		int[][] xy = new int[n][2];
		int count = 0;
		for(int i = 0; i < n; i++) {
			if(cal(scan.nextLong(), scan.nextLong()) <= d) {
				count++;
			}
		}
		System.out.println(count);
	}
	
	private static double cal(long x, long y) {
		return Math.sqrt(x*x + y*y);
	}

} public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int d = scan.nextInt();
//		int[][] xy = new int[n][2];
		int count = 0;
		for(int i = 0; i < n; i++) {
			if(cal(scan.nextLong(), scan.nextLong()) <= d) {
				count++;
			}
		}
		System.out.println(count);
	}
	
	private static double cal(long x, long y) {
		return Math.sqrt(x*x + y*y);
	}

} Main
import java.util.*;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int d = scan.nextInt();
//		int[][] xy = new int[n][2];
		int count = 0;
		for(int i = 0; i < n; i++) {
			if(cal(scan.nextLong(), scan.nextLong()) <= d) {
				count++;
			}
		}
		System.out.println(count);
	}
	
	private static double cal(long x, long y) {
		return Math.sqrt(x*x + y*y);
	}

}