import java.util.Scanner;

public class Main {
	public static void main(String args[]) {
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int D = stdIn.nextInt();
		double X;
		double Y;
		int count = 0;
		for(int i = 0; i < N; i ++) {
			X = stdIn.nextDouble();
			Y = stdIn.nextDouble();
			if(Math.sqrt(X * X + Y * Y) <= D) {
				count ++;
			}
		}
		System.out.println(count);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String args[]) {
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int D = stdIn.nextInt();
		double X;
		double Y;
		int count = 0;
		for(int i = 0; i < N; i ++) {
			X = stdIn.nextDouble();
			Y = stdIn.nextDouble();
			if(Math.sqrt(X * X + Y * Y) <= D) {
				count ++;
			}
		}
		System.out.println(count);
	}
} Main public static void main(String args[]) {
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int D = stdIn.nextInt();
		double X;
		double Y;
		int count = 0;
		for(int i = 0; i < N; i ++) {
			X = stdIn.nextDouble();
			Y = stdIn.nextDouble();
			if(Math.sqrt(X * X + Y * Y) <= D) {
				count ++;
			}
		}
		System.out.println(count);
	} main {
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int D = stdIn.nextInt();
		double X;
		double Y;
		int count = 0;
		for(int i = 0; i < N; i ++) {
			X = stdIn.nextDouble();
			Y = stdIn.nextDouble();
			if(Math.sqrt(X * X + Y * Y) <= D) {
				count ++;
			}
		}
		System.out.println(count);
	} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int N = stdIn.nextInt(); N stdIn.nextInt() stdIn.nextInt stdIn int D = stdIn.nextInt(); D stdIn.nextInt() stdIn.nextInt stdIn double X; X double Y; Y int count = 0; count 0 for(int i = 0; i < N; i ++) {
			X = stdIn.nextDouble();
			Y = stdIn.nextDouble();
			if(Math.sqrt(X * X + Y * Y) <= D) {
				count ++;
			}
		} int i = 0; int i = 0; i 0 i < N i N i ++ i ++ i {
			X = stdIn.nextDouble();
			Y = stdIn.nextDouble();
			if(Math.sqrt(X * X + Y * Y) <= D) {
				count ++;
			}
		} {
			X = stdIn.nextDouble();
			Y = stdIn.nextDouble();
			if(Math.sqrt(X * X + Y * Y) <= D) {
				count ++;
			}
		} X = stdIn.nextDouble() X stdIn.nextDouble() stdIn.nextDouble stdIn Y = stdIn.nextDouble() Y stdIn.nextDouble() stdIn.nextDouble stdIn if(Math.sqrt(X * X + Y * Y) <= D) {
				count ++;
			} 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 {
				count ++;
			} count ++ count System.out.println(count) System.out.println System.out System System.out count String args[] args public class Main {
	public static void main(String args[]) {
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int D = stdIn.nextInt();
		double X;
		double Y;
		int count = 0;
		for(int i = 0; i < N; i ++) {
			X = stdIn.nextDouble();
			Y = stdIn.nextDouble();
			if(Math.sqrt(X * X + Y * Y) <= D) {
				count ++;
			}
		}
		System.out.println(count);
	}
} public class Main {
	public static void main(String args[]) {
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int D = stdIn.nextInt();
		double X;
		double Y;
		int count = 0;
		for(int i = 0; i < N; i ++) {
			X = stdIn.nextDouble();
			Y = stdIn.nextDouble();
			if(Math.sqrt(X * X + Y * Y) <= D) {
				count ++;
			}
		}
		System.out.println(count);
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String args[]) {
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int D = stdIn.nextInt();
		double X;
		double Y;
		int count = 0;
		for(int i = 0; i < N; i ++) {
			X = stdIn.nextDouble();
			Y = stdIn.nextDouble();
			if(Math.sqrt(X * X + Y * Y) <= D) {
				count ++;
			}
		}
		System.out.println(count);
	}
}