import java.util.*;
public class Main {
 
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
 
		int N = sc.nextInt(), D = sc.nextInt(), c = 0;
 
		for(int i = 0; i < N; i++) {
			long X = sc.nextInt(), Y = sc.nextInt();
			if(Math.sqrt(X * X + Y * Y) <= D) {
				c++;
			}
		}
		System.out.println(c);
	}
} import java.util.*; util.* java public class Main {
 
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
 
		int N = sc.nextInt(), D = sc.nextInt(), c = 0;
 
		for(int i = 0; i < N; i++) {
			long X = sc.nextInt(), Y = sc.nextInt();
			if(Math.sqrt(X * X + Y * Y) <= D) {
				c++;
			}
		}
		System.out.println(c);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
 
		int N = sc.nextInt(), D = sc.nextInt(), c = 0;
 
		for(int i = 0; i < N; i++) {
			long X = sc.nextInt(), Y = sc.nextInt();
			if(Math.sqrt(X * X + Y * Y) <= D) {
				c++;
			}
		}
		System.out.println(c);
	} main {
		Scanner sc = new Scanner(System.in);
 
		int N = sc.nextInt(), D = sc.nextInt(), c = 0;
 
		for(int i = 0; i < N; i++) {
			long X = sc.nextInt(), Y = sc.nextInt();
			if(Math.sqrt(X * X + Y * Y) <= D) {
				c++;
			}
		}
		System.out.println(c);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt() N sc.nextInt() sc.nextInt sc D = sc.nextInt() D sc.nextInt() sc.nextInt sc c = 0; c 0 for(int i = 0; i < N; i++) {
			long X = sc.nextInt(), Y = sc.nextInt();
			if(Math.sqrt(X * X + Y * Y) <= D) {
				c++;
			}
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			long X = sc.nextInt(), Y = sc.nextInt();
			if(Math.sqrt(X * X + Y * Y) <= D) {
				c++;
			}
		} {
			long X = sc.nextInt(), Y = sc.nextInt();
			if(Math.sqrt(X * X + Y * Y) <= D) {
				c++;
			}
		} long X = sc.nextInt() X sc.nextInt() sc.nextInt sc Y = sc.nextInt(); Y sc.nextInt() sc.nextInt sc if(Math.sqrt(X * X + Y * Y) <= D) {
				c++;
			} Math.sqrt(X * X + Y * Y) <= D Math.sqrt(X * X + Y * Y) Math.sqrt Math X * X + Y * Y X * X X X Y * Y Y Y D {
				c++;
			} c++ c System.out.println(c) System.out.println System.out System System.out c String[] args args public class Main {
 
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
 
		int N = sc.nextInt(), D = sc.nextInt(), c = 0;
 
		for(int i = 0; i < N; i++) {
			long X = sc.nextInt(), Y = sc.nextInt();
			if(Math.sqrt(X * X + Y * Y) <= D) {
				c++;
			}
		}
		System.out.println(c);
	}
} public class Main {
 
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
 
		int N = sc.nextInt(), D = sc.nextInt(), c = 0;
 
		for(int i = 0; i < N; i++) {
			long X = sc.nextInt(), Y = sc.nextInt();
			if(Math.sqrt(X * X + Y * Y) <= D) {
				c++;
			}
		}
		System.out.println(c);
	}
} Main
import java.util.*;
public class Main {
 
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
 
		int N = sc.nextInt(), D = sc.nextInt(), c = 0;
 
		for(int i = 0; i < N; i++) {
			long X = sc.nextInt(), Y = sc.nextInt();
			if(Math.sqrt(X * X + Y * Y) <= D) {
				c++;
			}
		}
		System.out.println(c);
	}
}