import java.util.*;
import java.math.BigInteger;
 
public class Main{
  public static void main(String args[]){
  	Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int d = sc.nextInt();
    int x, y, p=0;
    BigInteger p1 = BigInteger.valueOf(d);
    p1 = p1.multiply(p1);
    for(int i = 0; i < n ; i++){
    	x = sc.nextInt();
      	y = sc.nextInt();
      	BigInteger r = BigInteger.valueOf(x);
      	r = r.multiply(r);
      	BigInteger s = BigInteger.valueOf(y);
      	s = s.multiply(s);
      	r = r.add(s);
      	if(r.compareTo(p1) <= 0)
        	p++;
    }
    System.out.println(p);
  }
} import java.util.*; util.* java import java.math.BigInteger; BigInteger java.math public class Main{
  public static void main(String args[]){
  	Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int d = sc.nextInt();
    int x, y, p=0;
    BigInteger p1 = BigInteger.valueOf(d);
    p1 = p1.multiply(p1);
    for(int i = 0; i < n ; i++){
    	x = sc.nextInt();
      	y = sc.nextInt();
      	BigInteger r = BigInteger.valueOf(x);
      	r = r.multiply(r);
      	BigInteger s = BigInteger.valueOf(y);
      	s = s.multiply(s);
      	r = r.add(s);
      	if(r.compareTo(p1) <= 0)
        	p++;
    }
    System.out.println(p);
  }
} Main public static void main(String args[]){
  	Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int d = sc.nextInt();
    int x, y, p=0;
    BigInteger p1 = BigInteger.valueOf(d);
    p1 = p1.multiply(p1);
    for(int i = 0; i < n ; i++){
    	x = sc.nextInt();
      	y = sc.nextInt();
      	BigInteger r = BigInteger.valueOf(x);
      	r = r.multiply(r);
      	BigInteger s = BigInteger.valueOf(y);
      	s = s.multiply(s);
      	r = r.add(s);
      	if(r.compareTo(p1) <= 0)
        	p++;
    }
    System.out.println(p);
  } main {
  	Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int d = sc.nextInt();
    int x, y, p=0;
    BigInteger p1 = BigInteger.valueOf(d);
    p1 = p1.multiply(p1);
    for(int i = 0; i < n ; i++){
    	x = sc.nextInt();
      	y = sc.nextInt();
      	BigInteger r = BigInteger.valueOf(x);
      	r = r.multiply(r);
      	BigInteger s = BigInteger.valueOf(y);
      	s = s.multiply(s);
      	r = r.add(s);
      	if(r.compareTo(p1) <= 0)
        	p++;
    }
    System.out.println(p);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int d = sc.nextInt(); d sc.nextInt() sc.nextInt sc int x x y y p=0; p 0 BigInteger p1 = BigInteger.valueOf(d); p1 BigInteger.valueOf(d) BigInteger.valueOf BigInteger d p1 = p1.multiply(p1) p1 p1.multiply(p1) p1.multiply p1 p1 for(int i = 0; i < n ; i++){
    	x = sc.nextInt();
      	y = sc.nextInt();
      	BigInteger r = BigInteger.valueOf(x);
      	r = r.multiply(r);
      	BigInteger s = BigInteger.valueOf(y);
      	s = s.multiply(s);
      	r = r.add(s);
      	if(r.compareTo(p1) <= 0)
        	p++;
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
    	x = sc.nextInt();
      	y = sc.nextInt();
      	BigInteger r = BigInteger.valueOf(x);
      	r = r.multiply(r);
      	BigInteger s = BigInteger.valueOf(y);
      	s = s.multiply(s);
      	r = r.add(s);
      	if(r.compareTo(p1) <= 0)
        	p++;
    } {
    	x = sc.nextInt();
      	y = sc.nextInt();
      	BigInteger r = BigInteger.valueOf(x);
      	r = r.multiply(r);
      	BigInteger s = BigInteger.valueOf(y);
      	s = s.multiply(s);
      	r = r.add(s);
      	if(r.compareTo(p1) <= 0)
        	p++;
    } x = sc.nextInt() x sc.nextInt() sc.nextInt sc y = sc.nextInt() y sc.nextInt() sc.nextInt sc BigInteger r = BigInteger.valueOf(x); r BigInteger.valueOf(x) BigInteger.valueOf BigInteger x r = r.multiply(r) r r.multiply(r) r.multiply r r BigInteger s = BigInteger.valueOf(y); s BigInteger.valueOf(y) BigInteger.valueOf BigInteger y s = s.multiply(s) s s.multiply(s) s.multiply s s r = r.add(s) r r.add(s) r.add r s if(r.compareTo(p1) <= 0)
        	p++; r.compareTo(p1) <= 0 r.compareTo(p1) r.compareTo r p1 0 p++ p System.out.println(p) System.out.println System.out System System.out p String args[] args public class Main{
  public static void main(String args[]){
  	Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int d = sc.nextInt();
    int x, y, p=0;
    BigInteger p1 = BigInteger.valueOf(d);
    p1 = p1.multiply(p1);
    for(int i = 0; i < n ; i++){
    	x = sc.nextInt();
      	y = sc.nextInt();
      	BigInteger r = BigInteger.valueOf(x);
      	r = r.multiply(r);
      	BigInteger s = BigInteger.valueOf(y);
      	s = s.multiply(s);
      	r = r.add(s);
      	if(r.compareTo(p1) <= 0)
        	p++;
    }
    System.out.println(p);
  }
} public class Main{
  public static void main(String args[]){
  	Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int d = sc.nextInt();
    int x, y, p=0;
    BigInteger p1 = BigInteger.valueOf(d);
    p1 = p1.multiply(p1);
    for(int i = 0; i < n ; i++){
    	x = sc.nextInt();
      	y = sc.nextInt();
      	BigInteger r = BigInteger.valueOf(x);
      	r = r.multiply(r);
      	BigInteger s = BigInteger.valueOf(y);
      	s = s.multiply(s);
      	r = r.add(s);
      	if(r.compareTo(p1) <= 0)
        	p++;
    }
    System.out.println(p);
  }
} Main
import java.util.*;
import java.math.BigInteger;
 
public class Main{
  public static void main(String args[]){
  	Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int d = sc.nextInt();
    int x, y, p=0;
    BigInteger p1 = BigInteger.valueOf(d);
    p1 = p1.multiply(p1);
    for(int i = 0; i < n ; i++){
    	x = sc.nextInt();
      	y = sc.nextInt();
      	BigInteger r = BigInteger.valueOf(x);
      	r = r.multiply(r);
      	BigInteger s = BigInteger.valueOf(y);
      	s = s.multiply(s);
      	r = r.add(s);
      	if(r.compareTo(p1) <= 0)
        	p++;
    }
    System.out.println(p);
  }
}