import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n=scan.nextInt();
		double k=scan.nextDouble();
		int cnt=0;
		double c=0;
		while(n-->0) {
			double a=scan.nextDouble();
			double b=scan.nextDouble();
			c=Math.sqrt((a*a)+(b*b));
			//System.out.println(Math.sqrt(c));
			if(c<=k) cnt++;
		}
		System.out.println(cnt);
	}

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

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n=scan.nextInt();
		double k=scan.nextDouble();
		int cnt=0;
		double c=0;
		while(n-->0) {
			double a=scan.nextDouble();
			double b=scan.nextDouble();
			c=Math.sqrt((a*a)+(b*b));
			//System.out.println(Math.sqrt(c));
			if(c<=k) cnt++;
		}
		System.out.println(cnt);
	}

} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n=scan.nextInt();
		double k=scan.nextDouble();
		int cnt=0;
		double c=0;
		while(n-->0) {
			double a=scan.nextDouble();
			double b=scan.nextDouble();
			c=Math.sqrt((a*a)+(b*b));
			//System.out.println(Math.sqrt(c));
			if(c<=k) cnt++;
		}
		System.out.println(cnt);
	} main {
		Scanner scan = new Scanner(System.in);
		int n=scan.nextInt();
		double k=scan.nextDouble();
		int cnt=0;
		double c=0;
		while(n-->0) {
			double a=scan.nextDouble();
			double b=scan.nextDouble();
			c=Math.sqrt((a*a)+(b*b));
			//System.out.println(Math.sqrt(c));
			if(c<=k) cnt++;
		}
		System.out.println(cnt);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n=scan.nextInt(); n scan.nextInt() scan.nextInt scan double k=scan.nextDouble(); k scan.nextDouble() scan.nextDouble scan int cnt=0; cnt 0 double c=0; c 0 while(n-->0) {
			double a=scan.nextDouble();
			double b=scan.nextDouble();
			c=Math.sqrt((a*a)+(b*b));
			//System.out.println(Math.sqrt(c));
			if(c<=k) cnt++;
		} n-->0 n-- n 0 {
			double a=scan.nextDouble();
			double b=scan.nextDouble();
			c=Math.sqrt((a*a)+(b*b));
			//System.out.println(Math.sqrt(c));
			if(c<=k) cnt++;
		} double a=scan.nextDouble(); a scan.nextDouble() scan.nextDouble scan double b=scan.nextDouble(); b scan.nextDouble() scan.nextDouble scan c=Math.sqrt((a*a)+(b*b)) c Math.sqrt((a*a)+(b*b)) Math.sqrt Math (a*a)+(b*b) (a*a) a a (b*b) b b if(c<=k) cnt++; c<=k c k cnt++ cnt System.out.println(cnt) System.out.println System.out System System.out cnt String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n=scan.nextInt();
		double k=scan.nextDouble();
		int cnt=0;
		double c=0;
		while(n-->0) {
			double a=scan.nextDouble();
			double b=scan.nextDouble();
			c=Math.sqrt((a*a)+(b*b));
			//System.out.println(Math.sqrt(c));
			if(c<=k) cnt++;
		}
		System.out.println(cnt);
	}

} public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n=scan.nextInt();
		double k=scan.nextDouble();
		int cnt=0;
		double c=0;
		while(n-->0) {
			double a=scan.nextDouble();
			double b=scan.nextDouble();
			c=Math.sqrt((a*a)+(b*b));
			//System.out.println(Math.sqrt(c));
			if(c<=k) cnt++;
		}
		System.out.println(cnt);
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n=scan.nextInt();
		double k=scan.nextDouble();
		int cnt=0;
		double c=0;
		while(n-->0) {
			double a=scan.nextDouble();
			double b=scan.nextDouble();
			c=Math.sqrt((a*a)+(b*b));
			//System.out.println(Math.sqrt(c));
			if(c<=k) cnt++;
		}
		System.out.println(cnt);
	}

}
