import java.util.LinkedList;
import java.util.Queue;
import java.util.Scanner;

public class Main {

	
	public static void main(String[] args) {
		
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		int d = s.nextInt();
		int ctr = 0;
		while(n--!=0) {
			int a = s.nextInt();
			int b = s.nextInt();
			
			if((Math.sqrt(Math.pow(a, 2)+Math.pow(b,2)))<=d) {
				ctr++;
			}
		}
		System.out.println(ctr);
	}

} import java.util.LinkedList; LinkedList java.util import java.util.Queue; Queue java.util import java.util.Scanner; Scanner java.util public class Main {

	
	public static void main(String[] args) {
		
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		int d = s.nextInt();
		int ctr = 0;
		while(n--!=0) {
			int a = s.nextInt();
			int b = s.nextInt();
			
			if((Math.sqrt(Math.pow(a, 2)+Math.pow(b,2)))<=d) {
				ctr++;
			}
		}
		System.out.println(ctr);
	}

} Main public static void main(String[] args) {
		
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		int d = s.nextInt();
		int ctr = 0;
		while(n--!=0) {
			int a = s.nextInt();
			int b = s.nextInt();
			
			if((Math.sqrt(Math.pow(a, 2)+Math.pow(b,2)))<=d) {
				ctr++;
			}
		}
		System.out.println(ctr);
	} main {
		
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		int d = s.nextInt();
		int ctr = 0;
		while(n--!=0) {
			int a = s.nextInt();
			int b = s.nextInt();
			
			if((Math.sqrt(Math.pow(a, 2)+Math.pow(b,2)))<=d) {
				ctr++;
			}
		}
		System.out.println(ctr);
	} Scanner s = new Scanner(System.in); s new Scanner(System.in) int n = s.nextInt(); n s.nextInt() s.nextInt s int d = s.nextInt(); d s.nextInt() s.nextInt s int ctr = 0; ctr 0 while(n--!=0) {
			int a = s.nextInt();
			int b = s.nextInt();
			
			if((Math.sqrt(Math.pow(a, 2)+Math.pow(b,2)))<=d) {
				ctr++;
			}
		} n--!=0 n-- n 0 {
			int a = s.nextInt();
			int b = s.nextInt();
			
			if((Math.sqrt(Math.pow(a, 2)+Math.pow(b,2)))<=d) {
				ctr++;
			}
		} int a = s.nextInt(); a s.nextInt() s.nextInt s int b = s.nextInt(); b s.nextInt() s.nextInt s if((Math.sqrt(Math.pow(a, 2)+Math.pow(b,2)))<=d) {
				ctr++;
			} (Math.sqrt(Math.pow(a, 2)+Math.pow(b,2)))<=d (Math.sqrt(Math.pow(a, 2)+Math.pow(b,2))) Math.sqrt Math Math.pow(a, 2)+Math.pow(b,2) Math.pow(a, 2) Math.pow Math a 2 Math.pow(b,2) Math.pow Math b 2 d {
				ctr++;
			} ctr++ ctr System.out.println(ctr) System.out.println System.out System System.out ctr String[] args args public class Main {

	
	public static void main(String[] args) {
		
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		int d = s.nextInt();
		int ctr = 0;
		while(n--!=0) {
			int a = s.nextInt();
			int b = s.nextInt();
			
			if((Math.sqrt(Math.pow(a, 2)+Math.pow(b,2)))<=d) {
				ctr++;
			}
		}
		System.out.println(ctr);
	}

} public class Main {

	
	public static void main(String[] args) {
		
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		int d = s.nextInt();
		int ctr = 0;
		while(n--!=0) {
			int a = s.nextInt();
			int b = s.nextInt();
			
			if((Math.sqrt(Math.pow(a, 2)+Math.pow(b,2)))<=d) {
				ctr++;
			}
		}
		System.out.println(ctr);
	}

} Main
import java.util.LinkedList;
import java.util.Queue;
import java.util.Scanner;

public class Main {

	
	public static void main(String[] args) {
		
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		int d = s.nextInt();
		int ctr = 0;
		while(n--!=0) {
			int a = s.nextInt();
			int b = s.nextInt();
			
			if((Math.sqrt(Math.pow(a, 2)+Math.pow(b,2)))<=d) {
				ctr++;
			}
		}
		System.out.println(ctr);
	}

}