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();
		long[] X = new long[N];
		long[] Y = new long[N];
		for(int i = 0;i < N;i++) {
			X[i] = sc.nextInt();
			Y[i] = sc.nextInt();
		}
		sc.close();

		int result=0;
		for(int i = 0;i < N;i++) {
			if(Math.sqrt(D*D)>=Math.sqrt(X[i]*X[i]+Y[i]*Y[i])) {
				result++;
			}
		}
		System.out.println(result);
	}

} 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();
		long[] X = new long[N];
		long[] Y = new long[N];
		for(int i = 0;i < N;i++) {
			X[i] = sc.nextInt();
			Y[i] = sc.nextInt();
		}
		sc.close();

		int result=0;
		for(int i = 0;i < N;i++) {
			if(Math.sqrt(D*D)>=Math.sqrt(X[i]*X[i]+Y[i]*Y[i])) {
				result++;
			}
		}
		System.out.println(result);
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		long D = sc.nextInt();
		long[] X = new long[N];
		long[] Y = new long[N];
		for(int i = 0;i < N;i++) {
			X[i] = sc.nextInt();
			Y[i] = sc.nextInt();
		}
		sc.close();

		int result=0;
		for(int i = 0;i < N;i++) {
			if(Math.sqrt(D*D)>=Math.sqrt(X[i]*X[i]+Y[i]*Y[i])) {
				result++;
			}
		}
		System.out.println(result);
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		long D = sc.nextInt();
		long[] X = new long[N];
		long[] Y = new long[N];
		for(int i = 0;i < N;i++) {
			X[i] = sc.nextInt();
			Y[i] = sc.nextInt();
		}
		sc.close();

		int result=0;
		for(int i = 0;i < N;i++) {
			if(Math.sqrt(D*D)>=Math.sqrt(X[i]*X[i]+Y[i]*Y[i])) {
				result++;
			}
		}
		System.out.println(result);
	} 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 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] = sc.nextInt();
			Y[i] = sc.nextInt();
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			X[i] = sc.nextInt();
			Y[i] = sc.nextInt();
		} {
			X[i] = sc.nextInt();
			Y[i] = sc.nextInt();
		} X[i] = sc.nextInt() X[i] X i sc.nextInt() sc.nextInt sc Y[i] = sc.nextInt() Y[i] Y i sc.nextInt() sc.nextInt sc sc.close() sc.close sc int result=0; result 0 for(int i = 0;i < N;i++) {
			if(Math.sqrt(D*D)>=Math.sqrt(X[i]*X[i]+Y[i]*Y[i])) {
				result++;
			}
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			if(Math.sqrt(D*D)>=Math.sqrt(X[i]*X[i]+Y[i]*Y[i])) {
				result++;
			}
		} {
			if(Math.sqrt(D*D)>=Math.sqrt(X[i]*X[i]+Y[i]*Y[i])) {
				result++;
			}
		} if(Math.sqrt(D*D)>=Math.sqrt(X[i]*X[i]+Y[i]*Y[i])) {
				result++;
			} Math.sqrt(D*D)>=Math.sqrt(X[i]*X[i]+Y[i]*Y[i]) Math.sqrt(D*D) Math.sqrt Math D*D D D 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 {
				result++;
			} result++ result System.out.println(result) System.out.println System.out System System.out result 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();
		long[] X = new long[N];
		long[] Y = new long[N];
		for(int i = 0;i < N;i++) {
			X[i] = sc.nextInt();
			Y[i] = sc.nextInt();
		}
		sc.close();

		int result=0;
		for(int i = 0;i < N;i++) {
			if(Math.sqrt(D*D)>=Math.sqrt(X[i]*X[i]+Y[i]*Y[i])) {
				result++;
			}
		}
		System.out.println(result);
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		long D = sc.nextInt();
		long[] X = new long[N];
		long[] Y = new long[N];
		for(int i = 0;i < N;i++) {
			X[i] = sc.nextInt();
			Y[i] = sc.nextInt();
		}
		sc.close();

		int result=0;
		for(int i = 0;i < N;i++) {
			if(Math.sqrt(D*D)>=Math.sqrt(X[i]*X[i]+Y[i]*Y[i])) {
				result++;
			}
		}
		System.out.println(result);
	}

} 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();
		long[] X = new long[N];
		long[] Y = new long[N];
		for(int i = 0;i < N;i++) {
			X[i] = sc.nextInt();
			Y[i] = sc.nextInt();
		}
		sc.close();

		int result=0;
		for(int i = 0;i < N;i++) {
			if(Math.sqrt(D*D)>=Math.sqrt(X[i]*X[i]+Y[i]*Y[i])) {
				result++;
			}
		}
		System.out.println(result);
	}

}
