import java.util.*;
import java.io.*;

/**
 * @author Azuz
 * 
 */
public class Main {

    void solve(Scanner in, PrintWriter out) {
      int N = in.nextInt();
      double d = in.nextDouble();
      int ans = 0;
      for (int i = 0; i < N; ++i) {
        double x = in.nextInt();
        double y = in.nextInt();

        double dist = Math.sqrt(x*x + y*y);
        if (dist <= d) {
          ++ans;
        }
      }

      System.out.println(ans);
    }

    public static void main(String[] args) {
        try(Scanner in = new Scanner(System.in);
            PrintWriter out = new PrintWriter(System.out)) {
            new Main().solve(in, out);
        }
    }
} import java.util.*; util.* java import java.io.*; io.* java public class Main {

    void solve(Scanner in, PrintWriter out) {
      int N = in.nextInt();
      double d = in.nextDouble();
      int ans = 0;
      for (int i = 0; i < N; ++i) {
        double x = in.nextInt();
        double y = in.nextInt();

        double dist = Math.sqrt(x*x + y*y);
        if (dist <= d) {
          ++ans;
        }
      }

      System.out.println(ans);
    }

    public static void main(String[] args) {
        try(Scanner in = new Scanner(System.in);
            PrintWriter out = new PrintWriter(System.out)) {
            new Main().solve(in, out);
        }
    }
} Main void solve(Scanner in, PrintWriter out) {
      int N = in.nextInt();
      double d = in.nextDouble();
      int ans = 0;
      for (int i = 0; i < N; ++i) {
        double x = in.nextInt();
        double y = in.nextInt();

        double dist = Math.sqrt(x*x + y*y);
        if (dist <= d) {
          ++ans;
        }
      }

      System.out.println(ans);
    } solve {
      int N = in.nextInt();
      double d = in.nextDouble();
      int ans = 0;
      for (int i = 0; i < N; ++i) {
        double x = in.nextInt();
        double y = in.nextInt();

        double dist = Math.sqrt(x*x + y*y);
        if (dist <= d) {
          ++ans;
        }
      }

      System.out.println(ans);
    } int N = in.nextInt(); N in.nextInt() in.nextInt in double d = in.nextDouble(); d in.nextDouble() in.nextDouble in int ans = 0; ans 0 for (int i = 0; i < N; ++i) {
        double x = in.nextInt();
        double y = in.nextInt();

        double dist = Math.sqrt(x*x + y*y);
        if (dist <= d) {
          ++ans;
        }
      } int i = 0; int i = 0; i 0 i < N i N ++i ++i i {
        double x = in.nextInt();
        double y = in.nextInt();

        double dist = Math.sqrt(x*x + y*y);
        if (dist <= d) {
          ++ans;
        }
      } {
        double x = in.nextInt();
        double y = in.nextInt();

        double dist = Math.sqrt(x*x + y*y);
        if (dist <= d) {
          ++ans;
        }
      } double x = in.nextInt(); x in.nextInt() in.nextInt in double y = in.nextInt(); y in.nextInt() in.nextInt in double dist = Math.sqrt(x*x + y*y); dist Math.sqrt(x*x + y*y) Math.sqrt Math x*x + y*y x*x x x y*y y y if (dist <= d) {
          ++ans;
        } dist <= d dist d {
          ++ans;
        } ++ans ans System.out.println(ans) System.out.println System.out System System.out ans Scanner in in PrintWriter out out public static void main(String[] args) {
        try(Scanner in = new Scanner(System.in);
            PrintWriter out = new PrintWriter(System.out)) {
            new Main().solve(in, out);
        }
    } main {
        try(Scanner in = new Scanner(System.in);
            PrintWriter out = new PrintWriter(System.out)) {
            new Main().solve(in, out);
        }
    } try(Scanner in = new Scanner(System.in);
            PrintWriter out = new PrintWriter(System.out)) {
            new Main().solve(in, out);
        } {
            new Main().solve(in, out);
        } Scanner in = new Scanner(System.in) Scanner in = new Scanner(System.in) new Scanner(System.in) PrintWriter out = new PrintWriter(System.out) PrintWriter out = new PrintWriter(System.out) new PrintWriter(System.out) new Main().solve(in, out) new Main().solve new Main() in out String[] args args public class Main {

    void solve(Scanner in, PrintWriter out) {
      int N = in.nextInt();
      double d = in.nextDouble();
      int ans = 0;
      for (int i = 0; i < N; ++i) {
        double x = in.nextInt();
        double y = in.nextInt();

        double dist = Math.sqrt(x*x + y*y);
        if (dist <= d) {
          ++ans;
        }
      }

      System.out.println(ans);
    }

    public static void main(String[] args) {
        try(Scanner in = new Scanner(System.in);
            PrintWriter out = new PrintWriter(System.out)) {
            new Main().solve(in, out);
        }
    }
} public class Main {

    void solve(Scanner in, PrintWriter out) {
      int N = in.nextInt();
      double d = in.nextDouble();
      int ans = 0;
      for (int i = 0; i < N; ++i) {
        double x = in.nextInt();
        double y = in.nextInt();

        double dist = Math.sqrt(x*x + y*y);
        if (dist <= d) {
          ++ans;
        }
      }

      System.out.println(ans);
    }

    public static void main(String[] args) {
        try(Scanner in = new Scanner(System.in);
            PrintWriter out = new PrintWriter(System.out)) {
            new Main().solve(in, out);
        }
    }
} Main
import java.util.*;
import java.io.*;

/**
 * @author Azuz
 * 
 */
public class Main {

    void solve(Scanner in, PrintWriter out) {
      int N = in.nextInt();
      double d = in.nextDouble();
      int ans = 0;
      for (int i = 0; i < N; ++i) {
        double x = in.nextInt();
        double y = in.nextInt();

        double dist = Math.sqrt(x*x + y*y);
        if (dist <= d) {
          ++ans;
        }
      }

      System.out.println(ans);
    }

    public static void main(String[] args) {
        try(Scanner in = new Scanner(System.in);
            PrintWriter out = new PrintWriter(System.out)) {
            new Main().solve(in, out);
        }
    }
}
