import java.util.Scanner;
 
class Main {
  public static void main(String args[]) {
    Scanner sc = new Scanner(System.in);
 
    int n = sc.nextInt();
    double d = sc.nextDouble();
    int c = 0;
    for(int i = 0;i < n;i++){
      double x = sc.nextDouble();
      double y = sc.nextDouble();
      
      double x1 = Math.pow(x,2);
      double y1 = Math.pow(y,2);
      
      double ans = Math.sqrt(x1 + y1);
      if(ans <= d){
        c++;
      }
    }
      System.out.println(c);
  }
} import java.util.Scanner; Scanner java.util class Main {
  public static void main(String args[]) {
    Scanner sc = new Scanner(System.in);
 
    int n = sc.nextInt();
    double d = sc.nextDouble();
    int c = 0;
    for(int i = 0;i < n;i++){
      double x = sc.nextDouble();
      double y = sc.nextDouble();
      
      double x1 = Math.pow(x,2);
      double y1 = Math.pow(y,2);
      
      double ans = Math.sqrt(x1 + y1);
      if(ans <= d){
        c++;
      }
    }
      System.out.println(c);
  }
} Main public static void main(String args[]) {
    Scanner sc = new Scanner(System.in);
 
    int n = sc.nextInt();
    double d = sc.nextDouble();
    int c = 0;
    for(int i = 0;i < n;i++){
      double x = sc.nextDouble();
      double y = sc.nextDouble();
      
      double x1 = Math.pow(x,2);
      double y1 = Math.pow(y,2);
      
      double ans = Math.sqrt(x1 + y1);
      if(ans <= d){
        c++;
      }
    }
      System.out.println(c);
  } main {
    Scanner sc = new Scanner(System.in);
 
    int n = sc.nextInt();
    double d = sc.nextDouble();
    int c = 0;
    for(int i = 0;i < n;i++){
      double x = sc.nextDouble();
      double y = sc.nextDouble();
      
      double x1 = Math.pow(x,2);
      double y1 = Math.pow(y,2);
      
      double ans = Math.sqrt(x1 + y1);
      if(ans <= d){
        c++;
      }
    }
      System.out.println(c);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc double d = sc.nextDouble(); d sc.nextDouble() sc.nextDouble sc int c = 0; c 0 for(int i = 0;i < n;i++){
      double x = sc.nextDouble();
      double y = sc.nextDouble();
      
      double x1 = Math.pow(x,2);
      double y1 = Math.pow(y,2);
      
      double ans = Math.sqrt(x1 + y1);
      if(ans <= d){
        c++;
      }
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
      double x = sc.nextDouble();
      double y = sc.nextDouble();
      
      double x1 = Math.pow(x,2);
      double y1 = Math.pow(y,2);
      
      double ans = Math.sqrt(x1 + y1);
      if(ans <= d){
        c++;
      }
    } {
      double x = sc.nextDouble();
      double y = sc.nextDouble();
      
      double x1 = Math.pow(x,2);
      double y1 = Math.pow(y,2);
      
      double ans = Math.sqrt(x1 + y1);
      if(ans <= d){
        c++;
      }
    } double x = sc.nextDouble(); x sc.nextDouble() sc.nextDouble sc double y = sc.nextDouble(); y sc.nextDouble() sc.nextDouble sc double x1 = Math.pow(x,2); x1 Math.pow(x,2) Math.pow Math x 2 double y1 = Math.pow(y,2); y1 Math.pow(y,2) Math.pow Math y 2 double ans = Math.sqrt(x1 + y1); ans Math.sqrt(x1 + y1) Math.sqrt Math x1 + y1 x1 y1 if(ans <= d){
        c++;
      } ans <= d ans d {
        c++;
      } c++ c System.out.println(c) System.out.println System.out System System.out c String args[] args
import java.util.Scanner;
 
class Main {
  public static void main(String args[]) {
    Scanner sc = new Scanner(System.in);
 
    int n = sc.nextInt();
    double d = sc.nextDouble();
    int c = 0;
    for(int i = 0;i < n;i++){
      double x = sc.nextDouble();
      double y = sc.nextDouble();
      
      double x1 = Math.pow(x,2);
      double y1 = Math.pow(y,2);
      
      double ans = Math.sqrt(x1 + y1);
      if(ans <= d){
        c++;
      }
    }
      System.out.println(c);
  }
}