import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {

  public static void main(String[] args) throws Exception {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] head = br.readLine().split(" ");
    int ans = 0;
    int n = Integer.parseInt(head[0]);
    long d = Long.parseLong(head[1]);
    long d2 = d * d;
    for(int i = 0; i < n; i++){
      String[] data = br.readLine().split(" ");
      long x = Long.parseLong(data[0]);
      long y = Long.parseLong(data[1]);
      if(d2 >= (x * x) + (y * y)){
        ans++;
      }
    }
    br.close();
    System.out.println(ans);
  }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

  public static void main(String[] args) throws Exception {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] head = br.readLine().split(" ");
    int ans = 0;
    int n = Integer.parseInt(head[0]);
    long d = Long.parseLong(head[1]);
    long d2 = d * d;
    for(int i = 0; i < n; i++){
      String[] data = br.readLine().split(" ");
      long x = Long.parseLong(data[0]);
      long y = Long.parseLong(data[1]);
      if(d2 >= (x * x) + (y * y)){
        ans++;
      }
    }
    br.close();
    System.out.println(ans);
  }
} Main public static void main(String[] args) throws Exception {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] head = br.readLine().split(" ");
    int ans = 0;
    int n = Integer.parseInt(head[0]);
    long d = Long.parseLong(head[1]);
    long d2 = d * d;
    for(int i = 0; i < n; i++){
      String[] data = br.readLine().split(" ");
      long x = Long.parseLong(data[0]);
      long y = Long.parseLong(data[1]);
      if(d2 >= (x * x) + (y * y)){
        ans++;
      }
    }
    br.close();
    System.out.println(ans);
  } main {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] head = br.readLine().split(" ");
    int ans = 0;
    int n = Integer.parseInt(head[0]);
    long d = Long.parseLong(head[1]);
    long d2 = d * d;
    for(int i = 0; i < n; i++){
      String[] data = br.readLine().split(" ");
      long x = Long.parseLong(data[0]);
      long y = Long.parseLong(data[1]);
      if(d2 >= (x * x) + (y * y)){
        ans++;
      }
    }
    br.close();
    System.out.println(ans);
  } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] head = br.readLine().split(" "); head br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int ans = 0; ans 0 int n = Integer.parseInt(head[0]); n Integer.parseInt(head[0]) Integer.parseInt Integer head[0] head 0 long d = Long.parseLong(head[1]); d Long.parseLong(head[1]) Long.parseLong Long head[1] head 1 long d2 = d * d; d2 d * d d d for(int i = 0; i < n; i++){
      String[] data = br.readLine().split(" ");
      long x = Long.parseLong(data[0]);
      long y = Long.parseLong(data[1]);
      if(d2 >= (x * x) + (y * y)){
        ans++;
      }
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
      String[] data = br.readLine().split(" ");
      long x = Long.parseLong(data[0]);
      long y = Long.parseLong(data[1]);
      if(d2 >= (x * x) + (y * y)){
        ans++;
      }
    } {
      String[] data = br.readLine().split(" ");
      long x = Long.parseLong(data[0]);
      long y = Long.parseLong(data[1]);
      if(d2 >= (x * x) + (y * y)){
        ans++;
      }
    } String[] data = br.readLine().split(" "); data br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " long x = Long.parseLong(data[0]); x Long.parseLong(data[0]) Long.parseLong Long data[0] data 0 long y = Long.parseLong(data[1]); y Long.parseLong(data[1]) Long.parseLong Long data[1] data 1 if(d2 >= (x * x) + (y * y)){
        ans++;
      } d2 >= (x * x) + (y * y) d2 (x * x) + (y * y) (x * x) x x (y * y) y y {
        ans++;
      } ans++ ans br.close() br.close br System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {

  public static void main(String[] args) throws Exception {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] head = br.readLine().split(" ");
    int ans = 0;
    int n = Integer.parseInt(head[0]);
    long d = Long.parseLong(head[1]);
    long d2 = d * d;
    for(int i = 0; i < n; i++){
      String[] data = br.readLine().split(" ");
      long x = Long.parseLong(data[0]);
      long y = Long.parseLong(data[1]);
      if(d2 >= (x * x) + (y * y)){
        ans++;
      }
    }
    br.close();
    System.out.println(ans);
  }
} public class Main {

  public static void main(String[] args) throws Exception {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] head = br.readLine().split(" ");
    int ans = 0;
    int n = Integer.parseInt(head[0]);
    long d = Long.parseLong(head[1]);
    long d2 = d * d;
    for(int i = 0; i < n; i++){
      String[] data = br.readLine().split(" ");
      long x = Long.parseLong(data[0]);
      long y = Long.parseLong(data[1]);
      if(d2 >= (x * x) + (y * y)){
        ans++;
      }
    }
    br.close();
    System.out.println(ans);
  }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {

  public static void main(String[] args) throws Exception {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] head = br.readLine().split(" ");
    int ans = 0;
    int n = Integer.parseInt(head[0]);
    long d = Long.parseLong(head[1]);
    long d2 = d * d;
    for(int i = 0; i < n; i++){
      String[] data = br.readLine().split(" ");
      long x = Long.parseLong(data[0]);
      long y = Long.parseLong(data[1]);
      if(d2 >= (x * x) + (y * y)){
        ans++;
      }
    }
    br.close();
    System.out.println(ans);
  }
}