import java.util.*;
 
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int num = sc.nextInt();
    long d = sc.nextLong();
    long count = 0;
    for(int i = 0;i < num;i++){
      long p = sc.nextLong();
      long q = sc.nextLong();
      long dis = p * p + q * q;
      if(dis <= d * d){
        count++;
      }
    }
    System.out.println(count);
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int num = sc.nextInt();
    long d = sc.nextLong();
    long count = 0;
    for(int i = 0;i < num;i++){
      long p = sc.nextLong();
      long q = sc.nextLong();
      long dis = p * p + q * q;
      if(dis <= d * d){
        count++;
      }
    }
    System.out.println(count);
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int num = sc.nextInt();
    long d = sc.nextLong();
    long count = 0;
    for(int i = 0;i < num;i++){
      long p = sc.nextLong();
      long q = sc.nextLong();
      long dis = p * p + q * q;
      if(dis <= d * d){
        count++;
      }
    }
    System.out.println(count);
  } main {
    Scanner sc = new Scanner(System.in);
    int num = sc.nextInt();
    long d = sc.nextLong();
    long count = 0;
    for(int i = 0;i < num;i++){
      long p = sc.nextLong();
      long q = sc.nextLong();
      long dis = p * p + q * q;
      if(dis <= d * d){
        count++;
      }
    }
    System.out.println(count);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int num = sc.nextInt(); num sc.nextInt() sc.nextInt sc long d = sc.nextLong(); d sc.nextLong() sc.nextLong sc long count = 0; count 0 for(int i = 0;i < num;i++){
      long p = sc.nextLong();
      long q = sc.nextLong();
      long dis = p * p + q * q;
      if(dis <= d * d){
        count++;
      }
    } int i = 0; int i = 0; i 0 i < num i num i++ i++ i {
      long p = sc.nextLong();
      long q = sc.nextLong();
      long dis = p * p + q * q;
      if(dis <= d * d){
        count++;
      }
    } {
      long p = sc.nextLong();
      long q = sc.nextLong();
      long dis = p * p + q * q;
      if(dis <= d * d){
        count++;
      }
    } long p = sc.nextLong(); p sc.nextLong() sc.nextLong sc long q = sc.nextLong(); q sc.nextLong() sc.nextLong sc long dis = p * p + q * q; dis p * p + q * q p * p p p q * q q q if(dis <= d * d){
        count++;
      } dis <= d * d dis d * d d 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 sc = new Scanner(System.in);
    int num = sc.nextInt();
    long d = sc.nextLong();
    long count = 0;
    for(int i = 0;i < num;i++){
      long p = sc.nextLong();
      long q = sc.nextLong();
      long dis = p * p + q * q;
      if(dis <= d * d){
        count++;
      }
    }
    System.out.println(count);
  }
} public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int num = sc.nextInt();
    long d = sc.nextLong();
    long count = 0;
    for(int i = 0;i < num;i++){
      long p = sc.nextLong();
      long q = sc.nextLong();
      long dis = p * p + q * q;
      if(dis <= d * d){
        count++;
      }
    }
    System.out.println(count);
  }
} Main
import java.util.*;
 
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int num = sc.nextInt();
    long d = sc.nextLong();
    long count = 0;
    for(int i = 0;i < num;i++){
      long p = sc.nextLong();
      long q = sc.nextLong();
      long dis = p * p + q * q;
      if(dis <= d * d){
        count++;
      }
    }
    System.out.println(count);
  }
}