import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
  Scanner scan = new Scanner(System.in);
  String str = scan.nextLine();
  String[] strs = str.split(" ");
  int D = Integer.parseInt(strs[1]);
  int count = 0;
    while (scan.hasNext()){
      str = scan.nextLine();
      strs = str.split(" ");
      int x = Integer.parseInt(strs[0]);
      int y = Integer.parseInt(strs[1]);
      double distance = Math.sqrt(Math.pow(x, 2)+Math.pow(y, 2));
      if(distance<=D) count++;
    }

    System.out.println(count);
}
} import java.util.Scanner; Scanner java.util public class Main {
  public static void main(String[] args) {
  Scanner scan = new Scanner(System.in);
  String str = scan.nextLine();
  String[] strs = str.split(" ");
  int D = Integer.parseInt(strs[1]);
  int count = 0;
    while (scan.hasNext()){
      str = scan.nextLine();
      strs = str.split(" ");
      int x = Integer.parseInt(strs[0]);
      int y = Integer.parseInt(strs[1]);
      double distance = Math.sqrt(Math.pow(x, 2)+Math.pow(y, 2));
      if(distance<=D) count++;
    }

    System.out.println(count);
}
} Main public static void main(String[] args) {
  Scanner scan = new Scanner(System.in);
  String str = scan.nextLine();
  String[] strs = str.split(" ");
  int D = Integer.parseInt(strs[1]);
  int count = 0;
    while (scan.hasNext()){
      str = scan.nextLine();
      strs = str.split(" ");
      int x = Integer.parseInt(strs[0]);
      int y = Integer.parseInt(strs[1]);
      double distance = Math.sqrt(Math.pow(x, 2)+Math.pow(y, 2));
      if(distance<=D) count++;
    }

    System.out.println(count);
} main {
  Scanner scan = new Scanner(System.in);
  String str = scan.nextLine();
  String[] strs = str.split(" ");
  int D = Integer.parseInt(strs[1]);
  int count = 0;
    while (scan.hasNext()){
      str = scan.nextLine();
      strs = str.split(" ");
      int x = Integer.parseInt(strs[0]);
      int y = Integer.parseInt(strs[1]);
      double distance = Math.sqrt(Math.pow(x, 2)+Math.pow(y, 2));
      if(distance<=D) count++;
    }

    System.out.println(count);
} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String str = scan.nextLine(); str scan.nextLine() scan.nextLine scan String[] strs = str.split(" "); strs str.split(" ") str.split str " " int D = Integer.parseInt(strs[1]); D Integer.parseInt(strs[1]) Integer.parseInt Integer strs[1] strs 1 int count = 0; count 0 while (scan.hasNext()){
      str = scan.nextLine();
      strs = str.split(" ");
      int x = Integer.parseInt(strs[0]);
      int y = Integer.parseInt(strs[1]);
      double distance = Math.sqrt(Math.pow(x, 2)+Math.pow(y, 2));
      if(distance<=D) count++;
    } scan.hasNext() scan.hasNext scan {
      str = scan.nextLine();
      strs = str.split(" ");
      int x = Integer.parseInt(strs[0]);
      int y = Integer.parseInt(strs[1]);
      double distance = Math.sqrt(Math.pow(x, 2)+Math.pow(y, 2));
      if(distance<=D) count++;
    } str = scan.nextLine() str scan.nextLine() scan.nextLine scan strs = str.split(" ") strs str.split(" ") str.split str " " int x = Integer.parseInt(strs[0]); x Integer.parseInt(strs[0]) Integer.parseInt Integer strs[0] strs 0 int y = Integer.parseInt(strs[1]); y Integer.parseInt(strs[1]) Integer.parseInt Integer strs[1] strs 1 double distance = Math.sqrt(Math.pow(x, 2)+Math.pow(y, 2)); distance Math.sqrt(Math.pow(x, 2)+Math.pow(y, 2)) Math.sqrt Math Math.pow(x, 2)+Math.pow(y, 2) Math.pow(x, 2) Math.pow Math x 2 Math.pow(y, 2) Math.pow Math y 2 if(distance<=D) count++; distance<=D distance D 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 scan = new Scanner(System.in);
  String str = scan.nextLine();
  String[] strs = str.split(" ");
  int D = Integer.parseInt(strs[1]);
  int count = 0;
    while (scan.hasNext()){
      str = scan.nextLine();
      strs = str.split(" ");
      int x = Integer.parseInt(strs[0]);
      int y = Integer.parseInt(strs[1]);
      double distance = Math.sqrt(Math.pow(x, 2)+Math.pow(y, 2));
      if(distance<=D) count++;
    }

    System.out.println(count);
}
} public class Main {
  public static void main(String[] args) {
  Scanner scan = new Scanner(System.in);
  String str = scan.nextLine();
  String[] strs = str.split(" ");
  int D = Integer.parseInt(strs[1]);
  int count = 0;
    while (scan.hasNext()){
      str = scan.nextLine();
      strs = str.split(" ");
      int x = Integer.parseInt(strs[0]);
      int y = Integer.parseInt(strs[1]);
      double distance = Math.sqrt(Math.pow(x, 2)+Math.pow(y, 2));
      if(distance<=D) count++;
    }

    System.out.println(count);
}
} Main
import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
  Scanner scan = new Scanner(System.in);
  String str = scan.nextLine();
  String[] strs = str.split(" ");
  int D = Integer.parseInt(strs[1]);
  int count = 0;
    while (scan.hasNext()){
      str = scan.nextLine();
      strs = str.split(" ");
      int x = Integer.parseInt(strs[0]);
      int y = Integer.parseInt(strs[1]);
      double distance = Math.sqrt(Math.pow(x, 2)+Math.pow(y, 2));
      if(distance<=D) count++;
    }

    System.out.println(count);
}
}
