import java.util.Scanner;

public class Main{
	
	public static void main(String[] args){
		
		Scanner s = new Scanner(System.in);
		
			int n = s.nextInt();
			int d = s.nextInt();
			
			long[] x = new long[n];
			long[] y = new long[n];
			
			int counter = 0;
			
			for(int i = 0; i < n; i++){
				
				x[i] = s.nextInt();
				y[i] = s.nextInt();
				
			}
			
			for(int i = 0; i < n; i++){
				
				double temp = Math.sqrt(x[i] * x[i] + y[i] * y[i]);
				
				if(temp <= d){
					counter++;
				}
				
			}
			
			System.out.println(counter);
			
		}
	
} import java.util.Scanner; Scanner java.util public class Main{
	
	public static void main(String[] args){
		
		Scanner s = new Scanner(System.in);
		
			int n = s.nextInt();
			int d = s.nextInt();
			
			long[] x = new long[n];
			long[] y = new long[n];
			
			int counter = 0;
			
			for(int i = 0; i < n; i++){
				
				x[i] = s.nextInt();
				y[i] = s.nextInt();
				
			}
			
			for(int i = 0; i < n; i++){
				
				double temp = Math.sqrt(x[i] * x[i] + y[i] * y[i]);
				
				if(temp <= d){
					counter++;
				}
				
			}
			
			System.out.println(counter);
			
		}
	
} Main public static void main(String[] args){
		
		Scanner s = new Scanner(System.in);
		
			int n = s.nextInt();
			int d = s.nextInt();
			
			long[] x = new long[n];
			long[] y = new long[n];
			
			int counter = 0;
			
			for(int i = 0; i < n; i++){
				
				x[i] = s.nextInt();
				y[i] = s.nextInt();
				
			}
			
			for(int i = 0; i < n; i++){
				
				double temp = Math.sqrt(x[i] * x[i] + y[i] * y[i]);
				
				if(temp <= d){
					counter++;
				}
				
			}
			
			System.out.println(counter);
			
		} main {
		
		Scanner s = new Scanner(System.in);
		
			int n = s.nextInt();
			int d = s.nextInt();
			
			long[] x = new long[n];
			long[] y = new long[n];
			
			int counter = 0;
			
			for(int i = 0; i < n; i++){
				
				x[i] = s.nextInt();
				y[i] = s.nextInt();
				
			}
			
			for(int i = 0; i < n; i++){
				
				double temp = Math.sqrt(x[i] * x[i] + y[i] * y[i]);
				
				if(temp <= d){
					counter++;
				}
				
			}
			
			System.out.println(counter);
			
		} Scanner s = new Scanner(System.in); s new Scanner(System.in) int n = s.nextInt(); n s.nextInt() s.nextInt s int d = s.nextInt(); d s.nextInt() s.nextInt s long[] x = new long[n]; x new long[n] n long[] y = new long[n]; y new long[n] n int counter = 0; counter 0 for(int i = 0; i < n; i++){
				
				x[i] = s.nextInt();
				y[i] = s.nextInt();
				
			} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
				
				x[i] = s.nextInt();
				y[i] = s.nextInt();
				
			} {
				
				x[i] = s.nextInt();
				y[i] = s.nextInt();
				
			} x[i] = s.nextInt() x[i] x i s.nextInt() s.nextInt s y[i] = s.nextInt() y[i] y i s.nextInt() s.nextInt s for(int i = 0; i < n; i++){
				
				double temp = Math.sqrt(x[i] * x[i] + y[i] * y[i]);
				
				if(temp <= d){
					counter++;
				}
				
			} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
				
				double temp = Math.sqrt(x[i] * x[i] + y[i] * y[i]);
				
				if(temp <= d){
					counter++;
				}
				
			} {
				
				double temp = Math.sqrt(x[i] * x[i] + y[i] * y[i]);
				
				if(temp <= d){
					counter++;
				}
				
			} double temp = Math.sqrt(x[i] * x[i] + y[i] * y[i]); temp 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(temp <= d){
					counter++;
				} temp <= d temp d {
					counter++;
				} counter++ counter System.out.println(counter) System.out.println System.out System System.out counter String[] args args public class Main{
	
	public static void main(String[] args){
		
		Scanner s = new Scanner(System.in);
		
			int n = s.nextInt();
			int d = s.nextInt();
			
			long[] x = new long[n];
			long[] y = new long[n];
			
			int counter = 0;
			
			for(int i = 0; i < n; i++){
				
				x[i] = s.nextInt();
				y[i] = s.nextInt();
				
			}
			
			for(int i = 0; i < n; i++){
				
				double temp = Math.sqrt(x[i] * x[i] + y[i] * y[i]);
				
				if(temp <= d){
					counter++;
				}
				
			}
			
			System.out.println(counter);
			
		}
	
} public class Main{
	
	public static void main(String[] args){
		
		Scanner s = new Scanner(System.in);
		
			int n = s.nextInt();
			int d = s.nextInt();
			
			long[] x = new long[n];
			long[] y = new long[n];
			
			int counter = 0;
			
			for(int i = 0; i < n; i++){
				
				x[i] = s.nextInt();
				y[i] = s.nextInt();
				
			}
			
			for(int i = 0; i < n; i++){
				
				double temp = Math.sqrt(x[i] * x[i] + y[i] * y[i]);
				
				if(temp <= d){
					counter++;
				}
				
			}
			
			System.out.println(counter);
			
		}
	
} Main
import java.util.Scanner;

public class Main{
	
	public static void main(String[] args){
		
		Scanner s = new Scanner(System.in);
		
			int n = s.nextInt();
			int d = s.nextInt();
			
			long[] x = new long[n];
			long[] y = new long[n];
			
			int counter = 0;
			
			for(int i = 0; i < n; i++){
				
				x[i] = s.nextInt();
				y[i] = s.nextInt();
				
			}
			
			for(int i = 0; i < n; i++){
				
				double temp = Math.sqrt(x[i] * x[i] + y[i] * y[i]);
				
				if(temp <= d){
					counter++;
				}
				
			}
			
			System.out.println(counter);
			
		}
	
}
