import java.util.*;
class Main {


	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		Long d = sc.nextLong();
		Long[] x = new Long[n];
		Long[] y = new Long[n];
		int cnt = 0;

		for(int i=0;i<n;i++){
			x[i] = sc.nextLong();
			y[i] = sc.nextLong();
		}

		long l = 0l;

		for(int i=0;i<n;i++){
			l = (x[i] * x[i]) + (y[i] * y[i]); 
			if(d >= Math.sqrt(l)){
				cnt++;
				
			}
		}

		System.out.println(cnt);
		}
	} import java.util.*; util.* java class Main {


	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		Long d = sc.nextLong();
		Long[] x = new Long[n];
		Long[] y = new Long[n];
		int cnt = 0;

		for(int i=0;i<n;i++){
			x[i] = sc.nextLong();
			y[i] = sc.nextLong();
		}

		long l = 0l;

		for(int i=0;i<n;i++){
			l = (x[i] * x[i]) + (y[i] * y[i]); 
			if(d >= Math.sqrt(l)){
				cnt++;
				
			}
		}

		System.out.println(cnt);
		}
	} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		Long d = sc.nextLong();
		Long[] x = new Long[n];
		Long[] y = new Long[n];
		int cnt = 0;

		for(int i=0;i<n;i++){
			x[i] = sc.nextLong();
			y[i] = sc.nextLong();
		}

		long l = 0l;

		for(int i=0;i<n;i++){
			l = (x[i] * x[i]) + (y[i] * y[i]); 
			if(d >= Math.sqrt(l)){
				cnt++;
				
			}
		}

		System.out.println(cnt);
		} main {
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		Long d = sc.nextLong();
		Long[] x = new Long[n];
		Long[] y = new Long[n];
		int cnt = 0;

		for(int i=0;i<n;i++){
			x[i] = sc.nextLong();
			y[i] = sc.nextLong();
		}

		long l = 0l;

		for(int i=0;i<n;i++){
			l = (x[i] * x[i]) + (y[i] * y[i]); 
			if(d >= Math.sqrt(l)){
				cnt++;
				
			}
		}

		System.out.println(cnt);
		} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc Long d = sc.nextLong(); d sc.nextLong() sc.nextLong sc Long[] x = new Long[n]; x new Long[n] n Long[] y = new Long[n]; y new Long[n] n int cnt = 0; cnt 0 for(int i=0;i<n;i++){
			x[i] = sc.nextLong();
			y[i] = sc.nextLong();
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			x[i] = sc.nextLong();
			y[i] = sc.nextLong();
		} {
			x[i] = sc.nextLong();
			y[i] = sc.nextLong();
		} x[i] = sc.nextLong() x[i] x i sc.nextLong() sc.nextLong sc y[i] = sc.nextLong() y[i] y i sc.nextLong() sc.nextLong sc long l = 0l; l 0l for(int i=0;i<n;i++){
			l = (x[i] * x[i]) + (y[i] * y[i]); 
			if(d >= Math.sqrt(l)){
				cnt++;
				
			}
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			l = (x[i] * x[i]) + (y[i] * y[i]); 
			if(d >= Math.sqrt(l)){
				cnt++;
				
			}
		} {
			l = (x[i] * x[i]) + (y[i] * y[i]); 
			if(d >= Math.sqrt(l)){
				cnt++;
				
			}
		} l = (x[i] * x[i]) + (y[i] * y[i]) l (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 >= Math.sqrt(l)){
				cnt++;
				
			} d >= Math.sqrt(l) d Math.sqrt(l) Math.sqrt Math l {
				cnt++;
				
			} cnt++ cnt System.out.println(cnt) System.out.println System.out System System.out cnt String[] args args
import java.util.*;
class Main {


	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		Long d = sc.nextLong();
		Long[] x = new Long[n];
		Long[] y = new Long[n];
		int cnt = 0;

		for(int i=0;i<n;i++){
			x[i] = sc.nextLong();
			y[i] = sc.nextLong();
		}

		long l = 0l;

		for(int i=0;i<n;i++){
			l = (x[i] * x[i]) + (y[i] * y[i]); 
			if(d >= Math.sqrt(l)){
				cnt++;
				
			}
		}

		System.out.println(cnt);
		}
	}