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[] line1 = br.readLine().split(" ");
    int n = Integer.parseInt(line1[0]);
    long d = Long.parseLong(line1[1]);
    long d2 = d * d;
    int answer = 0;
    for(int i = 0; i < n; i++){
      String[] line2 = br.readLine().split(" ");
      long x = Long.parseLong(line2[0]);
      long y = Long.parseLong(line2[1]);
      long distance2 = (x * x) + (y * y);
      if(d2 >= distance2) answer++;
    }
    System.out.println(answer);
  }
} 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[] line1 = br.readLine().split(" ");
    int n = Integer.parseInt(line1[0]);
    long d = Long.parseLong(line1[1]);
    long d2 = d * d;
    int answer = 0;
    for(int i = 0; i < n; i++){
      String[] line2 = br.readLine().split(" ");
      long x = Long.parseLong(line2[0]);
      long y = Long.parseLong(line2[1]);
      long distance2 = (x * x) + (y * y);
      if(d2 >= distance2) answer++;
    }
    System.out.println(answer);
  }
} Main public static void main(String[] args) throws Exception {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] line1 = br.readLine().split(" ");
    int n = Integer.parseInt(line1[0]);
    long d = Long.parseLong(line1[1]);
    long d2 = d * d;
    int answer = 0;
    for(int i = 0; i < n; i++){
      String[] line2 = br.readLine().split(" ");
      long x = Long.parseLong(line2[0]);
      long y = Long.parseLong(line2[1]);
      long distance2 = (x * x) + (y * y);
      if(d2 >= distance2) answer++;
    }
    System.out.println(answer);
  } main {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] line1 = br.readLine().split(" ");
    int n = Integer.parseInt(line1[0]);
    long d = Long.parseLong(line1[1]);
    long d2 = d * d;
    int answer = 0;
    for(int i = 0; i < n; i++){
      String[] line2 = br.readLine().split(" ");
      long x = Long.parseLong(line2[0]);
      long y = Long.parseLong(line2[1]);
      long distance2 = (x * x) + (y * y);
      if(d2 >= distance2) answer++;
    }
    System.out.println(answer);
  } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] line1 = br.readLine().split(" "); line1 br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int n = Integer.parseInt(line1[0]); n Integer.parseInt(line1[0]) Integer.parseInt Integer line1[0] line1 0 long d = Long.parseLong(line1[1]); d Long.parseLong(line1[1]) Long.parseLong Long line1[1] line1 1 long d2 = d * d; d2 d * d d d int answer = 0; answer 0 for(int i = 0; i < n; i++){
      String[] line2 = br.readLine().split(" ");
      long x = Long.parseLong(line2[0]);
      long y = Long.parseLong(line2[1]);
      long distance2 = (x * x) + (y * y);
      if(d2 >= distance2) answer++;
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
      String[] line2 = br.readLine().split(" ");
      long x = Long.parseLong(line2[0]);
      long y = Long.parseLong(line2[1]);
      long distance2 = (x * x) + (y * y);
      if(d2 >= distance2) answer++;
    } {
      String[] line2 = br.readLine().split(" ");
      long x = Long.parseLong(line2[0]);
      long y = Long.parseLong(line2[1]);
      long distance2 = (x * x) + (y * y);
      if(d2 >= distance2) answer++;
    } String[] line2 = br.readLine().split(" "); line2 br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " long x = Long.parseLong(line2[0]); x Long.parseLong(line2[0]) Long.parseLong Long line2[0] line2 0 long y = Long.parseLong(line2[1]); y Long.parseLong(line2[1]) Long.parseLong Long line2[1] line2 1 long distance2 = (x * x) + (y * y); distance2 (x * x) + (y * y) (x * x) x x (y * y) y y if(d2 >= distance2) answer++; d2 >= distance2 d2 distance2 answer++ answer System.out.println(answer) System.out.println System.out System System.out answer String[] args args public class Main {
  public static void main(String[] args) throws Exception {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] line1 = br.readLine().split(" ");
    int n = Integer.parseInt(line1[0]);
    long d = Long.parseLong(line1[1]);
    long d2 = d * d;
    int answer = 0;
    for(int i = 0; i < n; i++){
      String[] line2 = br.readLine().split(" ");
      long x = Long.parseLong(line2[0]);
      long y = Long.parseLong(line2[1]);
      long distance2 = (x * x) + (y * y);
      if(d2 >= distance2) answer++;
    }
    System.out.println(answer);
  }
} public class Main {
  public static void main(String[] args) throws Exception {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] line1 = br.readLine().split(" ");
    int n = Integer.parseInt(line1[0]);
    long d = Long.parseLong(line1[1]);
    long d2 = d * d;
    int answer = 0;
    for(int i = 0; i < n; i++){
      String[] line2 = br.readLine().split(" ");
      long x = Long.parseLong(line2[0]);
      long y = Long.parseLong(line2[1]);
      long distance2 = (x * x) + (y * y);
      if(d2 >= distance2) answer++;
    }
    System.out.println(answer);
  }
} 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[] line1 = br.readLine().split(" ");
    int n = Integer.parseInt(line1[0]);
    long d = Long.parseLong(line1[1]);
    long d2 = d * d;
    int answer = 0;
    for(int i = 0; i < n; i++){
      String[] line2 = br.readLine().split(" ");
      long x = Long.parseLong(line2[0]);
      long y = Long.parseLong(line2[1]);
      long distance2 = (x * x) + (y * y);
      if(d2 >= distance2) answer++;
    }
    System.out.println(answer);
  }
}