import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int D = sc.nextInt();
		int X,Y,kosu;
		double keisan;
		
		X=0;
		Y=0;
		keisan=0;
		kosu=0;
		
		for(int i=1;i<=N;i++) {
			X = sc.nextInt();
			Y = sc.nextInt();
			
			keisan = Math.sqrt(Math.pow(X,2)+Math.pow(Y,2));
			
			if(keisan<=D) {
				kosu++;
			}
		}
		
		System.out.println(kosu);
		sc.close();
	}

} 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();
		int D = sc.nextInt();
		int X,Y,kosu;
		double keisan;
		
		X=0;
		Y=0;
		keisan=0;
		kosu=0;
		
		for(int i=1;i<=N;i++) {
			X = sc.nextInt();
			Y = sc.nextInt();
			
			keisan = Math.sqrt(Math.pow(X,2)+Math.pow(Y,2));
			
			if(keisan<=D) {
				kosu++;
			}
		}
		
		System.out.println(kosu);
		sc.close();
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int D = sc.nextInt();
		int X,Y,kosu;
		double keisan;
		
		X=0;
		Y=0;
		keisan=0;
		kosu=0;
		
		for(int i=1;i<=N;i++) {
			X = sc.nextInt();
			Y = sc.nextInt();
			
			keisan = Math.sqrt(Math.pow(X,2)+Math.pow(Y,2));
			
			if(keisan<=D) {
				kosu++;
			}
		}
		
		System.out.println(kosu);
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int D = sc.nextInt();
		int X,Y,kosu;
		double keisan;
		
		X=0;
		Y=0;
		keisan=0;
		kosu=0;
		
		for(int i=1;i<=N;i++) {
			X = sc.nextInt();
			Y = sc.nextInt();
			
			keisan = Math.sqrt(Math.pow(X,2)+Math.pow(Y,2));
			
			if(keisan<=D) {
				kosu++;
			}
		}
		
		System.out.println(kosu);
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int D = sc.nextInt(); D sc.nextInt() sc.nextInt sc int X X Y Y kosu; kosu double keisan; keisan X=0 X 0 Y=0 Y 0 keisan=0 keisan 0 kosu=0 kosu 0 for(int i=1;i<=N;i++) {
			X = sc.nextInt();
			Y = sc.nextInt();
			
			keisan = Math.sqrt(Math.pow(X,2)+Math.pow(Y,2));
			
			if(keisan<=D) {
				kosu++;
			}
		} int i=1; int i=1; i 1 i<=N i N i++ i++ i {
			X = sc.nextInt();
			Y = sc.nextInt();
			
			keisan = Math.sqrt(Math.pow(X,2)+Math.pow(Y,2));
			
			if(keisan<=D) {
				kosu++;
			}
		} {
			X = sc.nextInt();
			Y = sc.nextInt();
			
			keisan = Math.sqrt(Math.pow(X,2)+Math.pow(Y,2));
			
			if(keisan<=D) {
				kosu++;
			}
		} X = sc.nextInt() X sc.nextInt() sc.nextInt sc Y = sc.nextInt() Y sc.nextInt() sc.nextInt sc keisan = Math.sqrt(Math.pow(X,2)+Math.pow(Y,2)) keisan Math.sqrt(Math.pow(X,2)+Math.pow(Y,2)) Math.sqrt Math Math.pow(X,2)+Math.pow(Y,2) Math.pow(X,2) Math.pow Math X 2 Math.pow(Y,2) Math.pow Math Y 2 if(keisan<=D) {
				kosu++;
			} keisan<=D keisan D {
				kosu++;
			} kosu++ kosu System.out.println(kosu) System.out.println System.out System System.out kosu sc.close() sc.close sc String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int D = sc.nextInt();
		int X,Y,kosu;
		double keisan;
		
		X=0;
		Y=0;
		keisan=0;
		kosu=0;
		
		for(int i=1;i<=N;i++) {
			X = sc.nextInt();
			Y = sc.nextInt();
			
			keisan = Math.sqrt(Math.pow(X,2)+Math.pow(Y,2));
			
			if(keisan<=D) {
				kosu++;
			}
		}
		
		System.out.println(kosu);
		sc.close();
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int D = sc.nextInt();
		int X,Y,kosu;
		double keisan;
		
		X=0;
		Y=0;
		keisan=0;
		kosu=0;
		
		for(int i=1;i<=N;i++) {
			X = sc.nextInt();
			Y = sc.nextInt();
			
			keisan = Math.sqrt(Math.pow(X,2)+Math.pow(Y,2));
			
			if(keisan<=D) {
				kosu++;
			}
		}
		
		System.out.println(kosu);
		sc.close();
	}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int D = sc.nextInt();
		int X,Y,kosu;
		double keisan;
		
		X=0;
		Y=0;
		keisan=0;
		kosu=0;
		
		for(int i=1;i<=N;i++) {
			X = sc.nextInt();
			Y = sc.nextInt();
			
			keisan = Math.sqrt(Math.pow(X,2)+Math.pow(Y,2));
			
			if(keisan<=D) {
				kosu++;
			}
		}
		
		System.out.println(kosu);
		sc.close();
	}

}