import java.util.Scanner;


public class Main  {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		long D = sc.nextInt();
		int count = 0;
		for(int i = 0; i < N; i++) {
			long p = sc.nextInt();
			long q = sc.nextInt();
			if(D * D >= (p * p) + (q * q)) {
				count++;
			}
		}
		System.out.print(count);	
	}
} import java.util.Scanner; Scanner java.util public class Main  {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		long D = sc.nextInt();
		int count = 0;
		for(int i = 0; i < N; i++) {
			long p = sc.nextInt();
			long q = sc.nextInt();
			if(D * D >= (p * p) + (q * q)) {
				count++;
			}
		}
		System.out.print(count);	
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		long D = sc.nextInt();
		int count = 0;
		for(int i = 0; i < N; i++) {
			long p = sc.nextInt();
			long q = sc.nextInt();
			if(D * D >= (p * p) + (q * q)) {
				count++;
			}
		}
		System.out.print(count);	
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		long D = sc.nextInt();
		int count = 0;
		for(int i = 0; i < N; i++) {
			long p = sc.nextInt();
			long q = sc.nextInt();
			if(D * D >= (p * p) + (q * q)) {
				count++;
			}
		}
		System.out.print(count);	
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc long D = sc.nextInt(); D sc.nextInt() sc.nextInt sc int count = 0; count 0 for(int i = 0; i < N; i++) {
			long p = sc.nextInt();
			long q = sc.nextInt();
			if(D * D >= (p * p) + (q * q)) {
				count++;
			}
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			long p = sc.nextInt();
			long q = sc.nextInt();
			if(D * D >= (p * p) + (q * q)) {
				count++;
			}
		} {
			long p = sc.nextInt();
			long q = sc.nextInt();
			if(D * D >= (p * p) + (q * q)) {
				count++;
			}
		} long p = sc.nextInt(); p sc.nextInt() sc.nextInt sc long q = sc.nextInt(); q sc.nextInt() sc.nextInt sc if(D * D >= (p * p) + (q * q)) {
				count++;
			} D * D >= (p * p) + (q * q) D * D D D (p * p) + (q * q) (p * p) p p (q * q) q q {
				count++;
			} count++ count System.out.print(count) System.out.print System.out System System.out count String[] args args public class Main  {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		long D = sc.nextInt();
		int count = 0;
		for(int i = 0; i < N; i++) {
			long p = sc.nextInt();
			long q = sc.nextInt();
			if(D * D >= (p * p) + (q * q)) {
				count++;
			}
		}
		System.out.print(count);	
	}
} public class Main  {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		long D = sc.nextInt();
		int count = 0;
		for(int i = 0; i < N; i++) {
			long p = sc.nextInt();
			long q = sc.nextInt();
			if(D * D >= (p * p) + (q * q)) {
				count++;
			}
		}
		System.out.print(count);	
	}
} Main
import java.util.Scanner;


public class Main  {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		long D = sc.nextInt();
		int count = 0;
		for(int i = 0; i < N; i++) {
			long p = sc.nextInt();
			long q = sc.nextInt();
			if(D * D >= (p * p) + (q * q)) {
				count++;
			}
		}
		System.out.print(count);	
	}
}
