import java.util.*;
public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scn=new Scanner(System.in);
		int n=scn.nextInt();
		int d=scn.nextInt();
		int count=0;
		for(int q=1;q<=n;q++) {
			
			int x=scn.nextInt();
			int y=scn.nextInt();
			double dis=Math.sqrt((Math.pow(x, 2)+Math.pow(y, 2)));
			if(dis<=d)
				count++;
			
			
		}
		System.out.println(count);
		
	}

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

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scn=new Scanner(System.in);
		int n=scn.nextInt();
		int d=scn.nextInt();
		int count=0;
		for(int q=1;q<=n;q++) {
			
			int x=scn.nextInt();
			int y=scn.nextInt();
			double dis=Math.sqrt((Math.pow(x, 2)+Math.pow(y, 2)));
			if(dis<=d)
				count++;
			
			
		}
		System.out.println(count);
		
	}

} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scn=new Scanner(System.in);
		int n=scn.nextInt();
		int d=scn.nextInt();
		int count=0;
		for(int q=1;q<=n;q++) {
			
			int x=scn.nextInt();
			int y=scn.nextInt();
			double dis=Math.sqrt((Math.pow(x, 2)+Math.pow(y, 2)));
			if(dis<=d)
				count++;
			
			
		}
		System.out.println(count);
		
	} main {
		// TODO Auto-generated method stub
		Scanner scn=new Scanner(System.in);
		int n=scn.nextInt();
		int d=scn.nextInt();
		int count=0;
		for(int q=1;q<=n;q++) {
			
			int x=scn.nextInt();
			int y=scn.nextInt();
			double dis=Math.sqrt((Math.pow(x, 2)+Math.pow(y, 2)));
			if(dis<=d)
				count++;
			
			
		}
		System.out.println(count);
		
	} Scanner scn=new Scanner(System.in); scn new Scanner(System.in) int n=scn.nextInt(); n scn.nextInt() scn.nextInt scn int d=scn.nextInt(); d scn.nextInt() scn.nextInt scn int count=0; count 0 for(int q=1;q<=n;q++) {
			
			int x=scn.nextInt();
			int y=scn.nextInt();
			double dis=Math.sqrt((Math.pow(x, 2)+Math.pow(y, 2)));
			if(dis<=d)
				count++;
			
			
		} int q=1; int q=1; q 1 q<=n q n q++ q++ q {
			
			int x=scn.nextInt();
			int y=scn.nextInt();
			double dis=Math.sqrt((Math.pow(x, 2)+Math.pow(y, 2)));
			if(dis<=d)
				count++;
			
			
		} {
			
			int x=scn.nextInt();
			int y=scn.nextInt();
			double dis=Math.sqrt((Math.pow(x, 2)+Math.pow(y, 2)));
			if(dis<=d)
				count++;
			
			
		} int x=scn.nextInt(); x scn.nextInt() scn.nextInt scn int y=scn.nextInt(); y scn.nextInt() scn.nextInt scn double dis=Math.sqrt((Math.pow(x, 2)+Math.pow(y, 2))); dis 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(dis<=d)
				count++; dis<=d dis d 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) {
		// TODO Auto-generated method stub
		Scanner scn=new Scanner(System.in);
		int n=scn.nextInt();
		int d=scn.nextInt();
		int count=0;
		for(int q=1;q<=n;q++) {
			
			int x=scn.nextInt();
			int y=scn.nextInt();
			double dis=Math.sqrt((Math.pow(x, 2)+Math.pow(y, 2)));
			if(dis<=d)
				count++;
			
			
		}
		System.out.println(count);
		
	}

} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scn=new Scanner(System.in);
		int n=scn.nextInt();
		int d=scn.nextInt();
		int count=0;
		for(int q=1;q<=n;q++) {
			
			int x=scn.nextInt();
			int y=scn.nextInt();
			double dis=Math.sqrt((Math.pow(x, 2)+Math.pow(y, 2)));
			if(dis<=d)
				count++;
			
			
		}
		System.out.println(count);
		
	}

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

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scn=new Scanner(System.in);
		int n=scn.nextInt();
		int d=scn.nextInt();
		int count=0;
		for(int q=1;q<=n;q++) {
			
			int x=scn.nextInt();
			int y=scn.nextInt();
			double dis=Math.sqrt((Math.pow(x, 2)+Math.pow(y, 2)));
			if(dis<=d)
				count++;
			
			
		}
		System.out.println(count);
		
	}

}
