import java.util.*;
public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    long N = sc.nextLong();
    long D = sc.nextLong();
    int counts = 0;
    for (int i = 0; i < N; i++) {
      long X = sc.nextLong();
      long Y = sc.nextLong();
      long A = X * X + Y * Y;
      if (A <= D * D) {
        counts++;
      }
    }
    System.out.println(counts);
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    long N = sc.nextLong();
    long D = sc.nextLong();
    int counts = 0;
    for (int i = 0; i < N; i++) {
      long X = sc.nextLong();
      long Y = sc.nextLong();
      long A = X * X + Y * Y;
      if (A <= D * D) {
        counts++;
      }
    }
    System.out.println(counts);
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    long N = sc.nextLong();
    long D = sc.nextLong();
    int counts = 0;
    for (int i = 0; i < N; i++) {
      long X = sc.nextLong();
      long Y = sc.nextLong();
      long A = X * X + Y * Y;
      if (A <= D * D) {
        counts++;
      }
    }
    System.out.println(counts);
  } main {
    Scanner sc = new Scanner(System.in);
    long N = sc.nextLong();
    long D = sc.nextLong();
    int counts = 0;
    for (int i = 0; i < N; i++) {
      long X = sc.nextLong();
      long Y = sc.nextLong();
      long A = X * X + Y * Y;
      if (A <= D * D) {
        counts++;
      }
    }
    System.out.println(counts);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) long N = sc.nextLong(); N sc.nextLong() sc.nextLong sc long D = sc.nextLong(); D sc.nextLong() sc.nextLong sc int counts = 0; counts 0 for (int i = 0; i < N; i++) {
      long X = sc.nextLong();
      long Y = sc.nextLong();
      long A = X * X + Y * Y;
      if (A <= D * D) {
        counts++;
      }
    } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
      long X = sc.nextLong();
      long Y = sc.nextLong();
      long A = X * X + Y * Y;
      if (A <= D * D) {
        counts++;
      }
    } {
      long X = sc.nextLong();
      long Y = sc.nextLong();
      long A = X * X + Y * Y;
      if (A <= D * D) {
        counts++;
      }
    } long X = sc.nextLong(); X sc.nextLong() sc.nextLong sc long Y = sc.nextLong(); Y sc.nextLong() sc.nextLong sc long A = X * X + Y * Y; A X * X + Y * Y X * X X X Y * Y Y Y if (A <= D * D) {
        counts++;
      } A <= D * D A D * D D D {
        counts++;
      } counts++ counts System.out.println(counts) System.out.println System.out System System.out counts String[] args args public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    long N = sc.nextLong();
    long D = sc.nextLong();
    int counts = 0;
    for (int i = 0; i < N; i++) {
      long X = sc.nextLong();
      long Y = sc.nextLong();
      long A = X * X + Y * Y;
      if (A <= D * D) {
        counts++;
      }
    }
    System.out.println(counts);
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    long N = sc.nextLong();
    long D = sc.nextLong();
    int counts = 0;
    for (int i = 0; i < N; i++) {
      long X = sc.nextLong();
      long Y = sc.nextLong();
      long A = X * X + Y * Y;
      if (A <= D * D) {
        counts++;
      }
    }
    System.out.println(counts);
  }
} Main
import java.util.*;
public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    long N = sc.nextLong();
    long D = sc.nextLong();
    int counts = 0;
    for (int i = 0; i < N; i++) {
      long X = sc.nextLong();
      long Y = sc.nextLong();
      long A = X * X + Y * Y;
      if (A <= D * D) {
        counts++;
      }
    }
    System.out.println(counts);
  }
}
