import java.util.*;

public class Main {
	public static void main(String[] args) {
	    Scanner sc = new Scanner(System.in);
		String[] x = sc.nextLine().split(" ");
		int s,g,d;
		int answer = 0;
		d = Integer.parseInt(x[1]);
		for (int i =0;i < Integer.parseInt(x[0]);i++) {
			String[] y = sc.nextLine().split(" ");
			s = Integer.parseInt(y[0]);
			g = Integer.parseInt(y[1]);
			if (Math.sqrt(Math.pow(s,2) + Math.pow(g,2)) <= d) {
				answer += 1;
			}
		}
		System.out.print(answer);
	}

} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
	    Scanner sc = new Scanner(System.in);
		String[] x = sc.nextLine().split(" ");
		int s,g,d;
		int answer = 0;
		d = Integer.parseInt(x[1]);
		for (int i =0;i < Integer.parseInt(x[0]);i++) {
			String[] y = sc.nextLine().split(" ");
			s = Integer.parseInt(y[0]);
			g = Integer.parseInt(y[1]);
			if (Math.sqrt(Math.pow(s,2) + Math.pow(g,2)) <= d) {
				answer += 1;
			}
		}
		System.out.print(answer);
	}

} Main public static void main(String[] args) {
	    Scanner sc = new Scanner(System.in);
		String[] x = sc.nextLine().split(" ");
		int s,g,d;
		int answer = 0;
		d = Integer.parseInt(x[1]);
		for (int i =0;i < Integer.parseInt(x[0]);i++) {
			String[] y = sc.nextLine().split(" ");
			s = Integer.parseInt(y[0]);
			g = Integer.parseInt(y[1]);
			if (Math.sqrt(Math.pow(s,2) + Math.pow(g,2)) <= d) {
				answer += 1;
			}
		}
		System.out.print(answer);
	} main {
	    Scanner sc = new Scanner(System.in);
		String[] x = sc.nextLine().split(" ");
		int s,g,d;
		int answer = 0;
		d = Integer.parseInt(x[1]);
		for (int i =0;i < Integer.parseInt(x[0]);i++) {
			String[] y = sc.nextLine().split(" ");
			s = Integer.parseInt(y[0]);
			g = Integer.parseInt(y[1]);
			if (Math.sqrt(Math.pow(s,2) + Math.pow(g,2)) <= d) {
				answer += 1;
			}
		}
		System.out.print(answer);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] x = sc.nextLine().split(" "); x sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " int s s g g d; d int answer = 0; answer 0 d = Integer.parseInt(x[1]) d Integer.parseInt(x[1]) Integer.parseInt Integer x[1] x 1 for (int i =0;i < Integer.parseInt(x[0]);i++) {
			String[] y = sc.nextLine().split(" ");
			s = Integer.parseInt(y[0]);
			g = Integer.parseInt(y[1]);
			if (Math.sqrt(Math.pow(s,2) + Math.pow(g,2)) <= d) {
				answer += 1;
			}
		} int i =0; int i =0; i 0 i < Integer.parseInt(x[0]) i Integer.parseInt(x[0]) Integer.parseInt Integer x[0] x 0 i++ i++ i {
			String[] y = sc.nextLine().split(" ");
			s = Integer.parseInt(y[0]);
			g = Integer.parseInt(y[1]);
			if (Math.sqrt(Math.pow(s,2) + Math.pow(g,2)) <= d) {
				answer += 1;
			}
		} {
			String[] y = sc.nextLine().split(" ");
			s = Integer.parseInt(y[0]);
			g = Integer.parseInt(y[1]);
			if (Math.sqrt(Math.pow(s,2) + Math.pow(g,2)) <= d) {
				answer += 1;
			}
		} String[] y = sc.nextLine().split(" "); y sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " s = Integer.parseInt(y[0]) s Integer.parseInt(y[0]) Integer.parseInt Integer y[0] y 0 g = Integer.parseInt(y[1]) g Integer.parseInt(y[1]) Integer.parseInt Integer y[1] y 1 if (Math.sqrt(Math.pow(s,2) + Math.pow(g,2)) <= d) {
				answer += 1;
			} Math.sqrt(Math.pow(s,2) + Math.pow(g,2)) <= d Math.sqrt(Math.pow(s,2) + Math.pow(g,2)) Math.sqrt Math Math.pow(s,2) + Math.pow(g,2) Math.pow(s,2) Math.pow Math s 2 Math.pow(g,2) Math.pow Math g 2 d {
				answer += 1;
			} answer += 1 answer 1 System.out.print(answer) System.out.print System.out System System.out answer String[] args args public class Main {
	public static void main(String[] args) {
	    Scanner sc = new Scanner(System.in);
		String[] x = sc.nextLine().split(" ");
		int s,g,d;
		int answer = 0;
		d = Integer.parseInt(x[1]);
		for (int i =0;i < Integer.parseInt(x[0]);i++) {
			String[] y = sc.nextLine().split(" ");
			s = Integer.parseInt(y[0]);
			g = Integer.parseInt(y[1]);
			if (Math.sqrt(Math.pow(s,2) + Math.pow(g,2)) <= d) {
				answer += 1;
			}
		}
		System.out.print(answer);
	}

} public class Main {
	public static void main(String[] args) {
	    Scanner sc = new Scanner(System.in);
		String[] x = sc.nextLine().split(" ");
		int s,g,d;
		int answer = 0;
		d = Integer.parseInt(x[1]);
		for (int i =0;i < Integer.parseInt(x[0]);i++) {
			String[] y = sc.nextLine().split(" ");
			s = Integer.parseInt(y[0]);
			g = Integer.parseInt(y[1]);
			if (Math.sqrt(Math.pow(s,2) + Math.pow(g,2)) <= d) {
				answer += 1;
			}
		}
		System.out.print(answer);
	}

} Main
import java.util.*;

public class Main {
	public static void main(String[] args) {
	    Scanner sc = new Scanner(System.in);
		String[] x = sc.nextLine().split(" ");
		int s,g,d;
		int answer = 0;
		d = Integer.parseInt(x[1]);
		for (int i =0;i < Integer.parseInt(x[0]);i++) {
			String[] y = sc.nextLine().split(" ");
			s = Integer.parseInt(y[0]);
			g = Integer.parseInt(y[1]);
			if (Math.sqrt(Math.pow(s,2) + Math.pow(g,2)) <= d) {
				answer += 1;
			}
		}
		System.out.print(answer);
	}

}