import java.io.*;
class Main{
  public static void main(String[] args) throws IOException{
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String s[] = br.readLine().trim().split(" ");
    double n = Double.parseDouble(s[0]);
    double d = Double.parseDouble(s[1]);
    int count =  0;
    while(n-- >0){
      s = br.readLine().trim().split(" ");
      double x1 = Double.parseDouble(s[0]);
      double x2 = Double.parseDouble(s[1]);
      double r = (x1*x1) + (x2*x2);
      r = Math.sqrt(r);
      if(r <= d)
        count++;
    }
    System.out.println(count);
  }
} import java.io.*; io.* java class Main{
  public static void main(String[] args) throws IOException{
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String s[] = br.readLine().trim().split(" ");
    double n = Double.parseDouble(s[0]);
    double d = Double.parseDouble(s[1]);
    int count =  0;
    while(n-- >0){
      s = br.readLine().trim().split(" ");
      double x1 = Double.parseDouble(s[0]);
      double x2 = Double.parseDouble(s[1]);
      double r = (x1*x1) + (x2*x2);
      r = Math.sqrt(r);
      if(r <= d)
        count++;
    }
    System.out.println(count);
  }
} Main public static void main(String[] args) throws IOException{
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String s[] = br.readLine().trim().split(" ");
    double n = Double.parseDouble(s[0]);
    double d = Double.parseDouble(s[1]);
    int count =  0;
    while(n-- >0){
      s = br.readLine().trim().split(" ");
      double x1 = Double.parseDouble(s[0]);
      double x2 = Double.parseDouble(s[1]);
      double r = (x1*x1) + (x2*x2);
      r = Math.sqrt(r);
      if(r <= d)
        count++;
    }
    System.out.println(count);
  } main {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String s[] = br.readLine().trim().split(" ");
    double n = Double.parseDouble(s[0]);
    double d = Double.parseDouble(s[1]);
    int count =  0;
    while(n-- >0){
      s = br.readLine().trim().split(" ");
      double x1 = Double.parseDouble(s[0]);
      double x2 = Double.parseDouble(s[1]);
      double r = (x1*x1) + (x2*x2);
      r = Math.sqrt(r);
      if(r <= d)
        count++;
    }
    System.out.println(count);
  } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String s[] = br.readLine().trim().split(" "); s br.readLine().trim().split(" ") br.readLine().trim().split br.readLine().trim() br.readLine().trim br.readLine() br.readLine br " " double n = Double.parseDouble(s[0]); n Double.parseDouble(s[0]) Double.parseDouble Double s[0] s 0 double d = Double.parseDouble(s[1]); d Double.parseDouble(s[1]) Double.parseDouble Double s[1] s 1 int count =  0; count 0 while(n-- >0){
      s = br.readLine().trim().split(" ");
      double x1 = Double.parseDouble(s[0]);
      double x2 = Double.parseDouble(s[1]);
      double r = (x1*x1) + (x2*x2);
      r = Math.sqrt(r);
      if(r <= d)
        count++;
    } n-- >0 n-- n 0 {
      s = br.readLine().trim().split(" ");
      double x1 = Double.parseDouble(s[0]);
      double x2 = Double.parseDouble(s[1]);
      double r = (x1*x1) + (x2*x2);
      r = Math.sqrt(r);
      if(r <= d)
        count++;
    } s = br.readLine().trim().split(" ") s br.readLine().trim().split(" ") br.readLine().trim().split br.readLine().trim() br.readLine().trim br.readLine() br.readLine br " " double x1 = Double.parseDouble(s[0]); x1 Double.parseDouble(s[0]) Double.parseDouble Double s[0] s 0 double x2 = Double.parseDouble(s[1]); x2 Double.parseDouble(s[1]) Double.parseDouble Double s[1] s 1 double r = (x1*x1) + (x2*x2); r (x1*x1) + (x2*x2) (x1*x1) x1 x1 (x2*x2) x2 x2 r = Math.sqrt(r) r Math.sqrt(r) Math.sqrt Math r if(r <= d)
        count++; r <= d r d count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args
import java.io.*;
class Main{
  public static void main(String[] args) throws IOException{
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String s[] = br.readLine().trim().split(" ");
    double n = Double.parseDouble(s[0]);
    double d = Double.parseDouble(s[1]);
    int count =  0;
    while(n-- >0){
      s = br.readLine().trim().split(" ");
      double x1 = Double.parseDouble(s[0]);
      double x2 = Double.parseDouble(s[1]);
      double r = (x1*x1) + (x2*x2);
      r = Math.sqrt(r);
      if(r <= d)
        count++;
    }
    System.out.println(count);
  }
}