
import java.util.*;

 public class Main {

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

  
    public static void main(String[] args) {
      Scanner x= new Scanner(System.in);
      int n = x.nextInt();
      int d = x.nextInt();
      double[]nums = new double[n];
      for(int i = 0 ; i < n;i++){
      double a = x.nextDouble();
      double b = x.nextDouble();
      a = Math.pow(a,2);
      b= Math.pow(b,2);
      double c = Math.sqrt(a+b);
      nums[i] = c;
      }
      int count = 0;
          for(int i = 0 ; i<n;i++){
          if(nums[i] <=d){
          count++;
          }
          }
          System.out.println(count);
          
    }
    
} Main public static void main(String[] args) {
      Scanner x= new Scanner(System.in);
      int n = x.nextInt();
      int d = x.nextInt();
      double[]nums = new double[n];
      for(int i = 0 ; i < n;i++){
      double a = x.nextDouble();
      double b = x.nextDouble();
      a = Math.pow(a,2);
      b= Math.pow(b,2);
      double c = Math.sqrt(a+b);
      nums[i] = c;
      }
      int count = 0;
          for(int i = 0 ; i<n;i++){
          if(nums[i] <=d){
          count++;
          }
          }
          System.out.println(count);
          
    } main {
      Scanner x= new Scanner(System.in);
      int n = x.nextInt();
      int d = x.nextInt();
      double[]nums = new double[n];
      for(int i = 0 ; i < n;i++){
      double a = x.nextDouble();
      double b = x.nextDouble();
      a = Math.pow(a,2);
      b= Math.pow(b,2);
      double c = Math.sqrt(a+b);
      nums[i] = c;
      }
      int count = 0;
          for(int i = 0 ; i<n;i++){
          if(nums[i] <=d){
          count++;
          }
          }
          System.out.println(count);
          
    } Scanner x= new Scanner(System.in); x new Scanner(System.in) int n = x.nextInt(); n x.nextInt() x.nextInt x int d = x.nextInt(); d x.nextInt() x.nextInt x double[]nums = new double[n]; nums new double[n] n for(int i = 0 ; i < n;i++){
      double a = x.nextDouble();
      double b = x.nextDouble();
      a = Math.pow(a,2);
      b= Math.pow(b,2);
      double c = Math.sqrt(a+b);
      nums[i] = c;
      } int i = 0 ; int i = 0 ; i 0 i < n i n i++ i++ i {
      double a = x.nextDouble();
      double b = x.nextDouble();
      a = Math.pow(a,2);
      b= Math.pow(b,2);
      double c = Math.sqrt(a+b);
      nums[i] = c;
      } {
      double a = x.nextDouble();
      double b = x.nextDouble();
      a = Math.pow(a,2);
      b= Math.pow(b,2);
      double c = Math.sqrt(a+b);
      nums[i] = c;
      } double a = x.nextDouble(); a x.nextDouble() x.nextDouble x double b = x.nextDouble(); b x.nextDouble() x.nextDouble x a = Math.pow(a,2) a Math.pow(a,2) Math.pow Math a 2 b= Math.pow(b,2) b Math.pow(b,2) Math.pow Math b 2 double c = Math.sqrt(a+b); c Math.sqrt(a+b) Math.sqrt Math a+b a b nums[i] = c nums[i] nums i c int count = 0; count 0 for(int i = 0 ; i<n;i++){
          if(nums[i] <=d){
          count++;
          }
          } int i = 0 ; int i = 0 ; i 0 i<n i n i++ i++ i {
          if(nums[i] <=d){
          count++;
          }
          } {
          if(nums[i] <=d){
          count++;
          }
          } if(nums[i] <=d){
          count++;
          } nums[i] <=d nums[i] nums i d {
          count++;
          } 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) {
      Scanner x= new Scanner(System.in);
      int n = x.nextInt();
      int d = x.nextInt();
      double[]nums = new double[n];
      for(int i = 0 ; i < n;i++){
      double a = x.nextDouble();
      double b = x.nextDouble();
      a = Math.pow(a,2);
      b= Math.pow(b,2);
      double c = Math.sqrt(a+b);
      nums[i] = c;
      }
      int count = 0;
          for(int i = 0 ; i<n;i++){
          if(nums[i] <=d){
          count++;
          }
          }
          System.out.println(count);
          
    }
    
} public class Main {

  
    public static void main(String[] args) {
      Scanner x= new Scanner(System.in);
      int n = x.nextInt();
      int d = x.nextInt();
      double[]nums = new double[n];
      for(int i = 0 ; i < n;i++){
      double a = x.nextDouble();
      double b = x.nextDouble();
      a = Math.pow(a,2);
      b= Math.pow(b,2);
      double c = Math.sqrt(a+b);
      nums[i] = c;
      }
      int count = 0;
          for(int i = 0 ; i<n;i++){
          if(nums[i] <=d){
          count++;
          }
          }
          System.out.println(count);
          
    }
    
} Main

import java.util.*;

 public class Main {

  
    public static void main(String[] args) {
      Scanner x= new Scanner(System.in);
      int n = x.nextInt();
      int d = x.nextInt();
      double[]nums = new double[n];
      for(int i = 0 ; i < n;i++){
      double a = x.nextDouble();
      double b = x.nextDouble();
      a = Math.pow(a,2);
      b= Math.pow(b,2);
      double c = Math.sqrt(a+b);
      nums[i] = c;
      }
      int count = 0;
          for(int i = 0 ; i<n;i++){
          if(nums[i] <=d){
          count++;
          }
          }
          System.out.println(count);
          
    }
    
}
