import java.util.Scanner;

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

} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[]args) {
		try(Scanner scan = new Scanner(System.in)){
			
			int N = scan.nextInt();
			int d = scan.nextInt();
			double D = (double)d;
			
			long[]X = new long[N];
			long[]Y = new long[N];
			for(int i = 0;i<N;i++) {
				X[i] = scan.nextLong();
				Y[i] = scan.nextLong();
			}
			
			int count = 0;
			
			for(int i = 0;i<N;i++) {
				double dist = Math.sqrt(X[i]*X[i]+Y[i]*Y[i]);
				if(D>=dist)count++;
			}
			
			System.out.println(count);
			
			
		}
		
		
	}
		

} Main public static void main(String[]args) {
		try(Scanner scan = new Scanner(System.in)){
			
			int N = scan.nextInt();
			int d = scan.nextInt();
			double D = (double)d;
			
			long[]X = new long[N];
			long[]Y = new long[N];
			for(int i = 0;i<N;i++) {
				X[i] = scan.nextLong();
				Y[i] = scan.nextLong();
			}
			
			int count = 0;
			
			for(int i = 0;i<N;i++) {
				double dist = Math.sqrt(X[i]*X[i]+Y[i]*Y[i]);
				if(D>=dist)count++;
			}
			
			System.out.println(count);
			
			
		}
		
		
	} main {
		try(Scanner scan = new Scanner(System.in)){
			
			int N = scan.nextInt();
			int d = scan.nextInt();
			double D = (double)d;
			
			long[]X = new long[N];
			long[]Y = new long[N];
			for(int i = 0;i<N;i++) {
				X[i] = scan.nextLong();
				Y[i] = scan.nextLong();
			}
			
			int count = 0;
			
			for(int i = 0;i<N;i++) {
				double dist = Math.sqrt(X[i]*X[i]+Y[i]*Y[i]);
				if(D>=dist)count++;
			}
			
			System.out.println(count);
			
			
		}
		
		
	} try(Scanner scan = new Scanner(System.in)){
			
			int N = scan.nextInt();
			int d = scan.nextInt();
			double D = (double)d;
			
			long[]X = new long[N];
			long[]Y = new long[N];
			for(int i = 0;i<N;i++) {
				X[i] = scan.nextLong();
				Y[i] = scan.nextLong();
			}
			
			int count = 0;
			
			for(int i = 0;i<N;i++) {
				double dist = Math.sqrt(X[i]*X[i]+Y[i]*Y[i]);
				if(D>=dist)count++;
			}
			
			System.out.println(count);
			
			
		} {
			
			int N = scan.nextInt();
			int d = scan.nextInt();
			double D = (double)d;
			
			long[]X = new long[N];
			long[]Y = new long[N];
			for(int i = 0;i<N;i++) {
				X[i] = scan.nextLong();
				Y[i] = scan.nextLong();
			}
			
			int count = 0;
			
			for(int i = 0;i<N;i++) {
				double dist = Math.sqrt(X[i]*X[i]+Y[i]*Y[i]);
				if(D>=dist)count++;
			}
			
			System.out.println(count);
			
			
		} Scanner scan = new Scanner(System.in) Scanner scan = new Scanner(System.in) new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan int d = scan.nextInt(); d scan.nextInt() scan.nextInt scan double D = (double)d; D (double)d long[]X = new long[N]; X new long[N] N long[]Y = new long[N]; Y new long[N] N for(int i = 0;i<N;i++) {
				X[i] = scan.nextLong();
				Y[i] = scan.nextLong();
			} int i = 0; int i = 0; i 0 i<N i N i++ i++ i {
				X[i] = scan.nextLong();
				Y[i] = scan.nextLong();
			} {
				X[i] = scan.nextLong();
				Y[i] = scan.nextLong();
			} X[i] = scan.nextLong() X[i] X i scan.nextLong() scan.nextLong scan Y[i] = scan.nextLong() Y[i] Y i scan.nextLong() scan.nextLong scan int count = 0; count 0 for(int i = 0;i<N;i++) {
				double dist = Math.sqrt(X[i]*X[i]+Y[i]*Y[i]);
				if(D>=dist)count++;
			} int i = 0; int i = 0; i 0 i<N i N i++ i++ i {
				double dist = Math.sqrt(X[i]*X[i]+Y[i]*Y[i]);
				if(D>=dist)count++;
			} {
				double dist = Math.sqrt(X[i]*X[i]+Y[i]*Y[i]);
				if(D>=dist)count++;
			} double dist = Math.sqrt(X[i]*X[i]+Y[i]*Y[i]); dist Math.sqrt(X[i]*X[i]+Y[i]*Y[i]) Math.sqrt Math X[i]*X[i]+Y[i]*Y[i] X[i]*X[i] X[i] X i X[i] X i Y[i]*Y[i] Y[i] Y i Y[i] Y i if(D>=dist)count++; D>=dist D dist 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) {
		try(Scanner scan = new Scanner(System.in)){
			
			int N = scan.nextInt();
			int d = scan.nextInt();
			double D = (double)d;
			
			long[]X = new long[N];
			long[]Y = new long[N];
			for(int i = 0;i<N;i++) {
				X[i] = scan.nextLong();
				Y[i] = scan.nextLong();
			}
			
			int count = 0;
			
			for(int i = 0;i<N;i++) {
				double dist = Math.sqrt(X[i]*X[i]+Y[i]*Y[i]);
				if(D>=dist)count++;
			}
			
			System.out.println(count);
			
			
		}
		
		
	}
		

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

} Main
import java.util.Scanner;

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

}
