import java.util.*;

public class Main {
	public static void main(String[] args){
 
        Scanner sc = null;
        sc = new Scanner(System.in);
        int n = sc.nextInt();
        int d = sc.nextInt();
        double w_num = 0;
        long p = 0;
        long q = 0;
        double sqNum = 0;
        int ans = 0;
        for (int i = 0; i < n; i++) {
            p = sc.nextLong();
            q = sc.nextLong();
            w_num = (double)Math.pow(p, 2) + (double)Math.pow(q, 2);
            sqNum = (double)Math.sqrt(w_num);
            if (sqNum <= d){
                ans += 1;
            }
          }
          sc.close();
        System.out.println(ans);
      
      }
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
 
        Scanner sc = null;
        sc = new Scanner(System.in);
        int n = sc.nextInt();
        int d = sc.nextInt();
        double w_num = 0;
        long p = 0;
        long q = 0;
        double sqNum = 0;
        int ans = 0;
        for (int i = 0; i < n; i++) {
            p = sc.nextLong();
            q = sc.nextLong();
            w_num = (double)Math.pow(p, 2) + (double)Math.pow(q, 2);
            sqNum = (double)Math.sqrt(w_num);
            if (sqNum <= d){
                ans += 1;
            }
          }
          sc.close();
        System.out.println(ans);
      
      }
} Main public static void main(String[] args){
 
        Scanner sc = null;
        sc = new Scanner(System.in);
        int n = sc.nextInt();
        int d = sc.nextInt();
        double w_num = 0;
        long p = 0;
        long q = 0;
        double sqNum = 0;
        int ans = 0;
        for (int i = 0; i < n; i++) {
            p = sc.nextLong();
            q = sc.nextLong();
            w_num = (double)Math.pow(p, 2) + (double)Math.pow(q, 2);
            sqNum = (double)Math.sqrt(w_num);
            if (sqNum <= d){
                ans += 1;
            }
          }
          sc.close();
        System.out.println(ans);
      
      } main {
 
        Scanner sc = null;
        sc = new Scanner(System.in);
        int n = sc.nextInt();
        int d = sc.nextInt();
        double w_num = 0;
        long p = 0;
        long q = 0;
        double sqNum = 0;
        int ans = 0;
        for (int i = 0; i < n; i++) {
            p = sc.nextLong();
            q = sc.nextLong();
            w_num = (double)Math.pow(p, 2) + (double)Math.pow(q, 2);
            sqNum = (double)Math.sqrt(w_num);
            if (sqNum <= d){
                ans += 1;
            }
          }
          sc.close();
        System.out.println(ans);
      
      } Scanner sc = null; sc null sc = new Scanner(System.in) sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int d = sc.nextInt(); d sc.nextInt() sc.nextInt sc double w_num = 0; w_num 0 long p = 0; p 0 long q = 0; q 0 double sqNum = 0; sqNum 0 int ans = 0; ans 0 for (int i = 0; i < n; i++) {
            p = sc.nextLong();
            q = sc.nextLong();
            w_num = (double)Math.pow(p, 2) + (double)Math.pow(q, 2);
            sqNum = (double)Math.sqrt(w_num);
            if (sqNum <= d){
                ans += 1;
            }
          } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            p = sc.nextLong();
            q = sc.nextLong();
            w_num = (double)Math.pow(p, 2) + (double)Math.pow(q, 2);
            sqNum = (double)Math.sqrt(w_num);
            if (sqNum <= d){
                ans += 1;
            }
          } {
            p = sc.nextLong();
            q = sc.nextLong();
            w_num = (double)Math.pow(p, 2) + (double)Math.pow(q, 2);
            sqNum = (double)Math.sqrt(w_num);
            if (sqNum <= d){
                ans += 1;
            }
          } p = sc.nextLong() p sc.nextLong() sc.nextLong sc q = sc.nextLong() q sc.nextLong() sc.nextLong sc w_num = (double)Math.pow(p, 2) + (double)Math.pow(q, 2) w_num (double)Math.pow(p, 2) + (double)Math.pow(q, 2) (double)Math.pow(p, 2) Math.pow Math p 2 (double)Math.pow(q, 2) Math.pow Math q 2 sqNum = (double)Math.sqrt(w_num) sqNum (double)Math.sqrt(w_num) Math.sqrt Math w_num if (sqNum <= d){
                ans += 1;
            } sqNum <= d sqNum d {
                ans += 1;
            } ans += 1 ans 1 sc.close() sc.close sc 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){
 
        Scanner sc = null;
        sc = new Scanner(System.in);
        int n = sc.nextInt();
        int d = sc.nextInt();
        double w_num = 0;
        long p = 0;
        long q = 0;
        double sqNum = 0;
        int ans = 0;
        for (int i = 0; i < n; i++) {
            p = sc.nextLong();
            q = sc.nextLong();
            w_num = (double)Math.pow(p, 2) + (double)Math.pow(q, 2);
            sqNum = (double)Math.sqrt(w_num);
            if (sqNum <= d){
                ans += 1;
            }
          }
          sc.close();
        System.out.println(ans);
      
      }
} public class Main {
	public static void main(String[] args){
 
        Scanner sc = null;
        sc = new Scanner(System.in);
        int n = sc.nextInt();
        int d = sc.nextInt();
        double w_num = 0;
        long p = 0;
        long q = 0;
        double sqNum = 0;
        int ans = 0;
        for (int i = 0; i < n; i++) {
            p = sc.nextLong();
            q = sc.nextLong();
            w_num = (double)Math.pow(p, 2) + (double)Math.pow(q, 2);
            sqNum = (double)Math.sqrt(w_num);
            if (sqNum <= d){
                ans += 1;
            }
          }
          sc.close();
        System.out.println(ans);
      
      }
} Main
import java.util.*;

public class Main {
	public static void main(String[] args){
 
        Scanner sc = null;
        sc = new Scanner(System.in);
        int n = sc.nextInt();
        int d = sc.nextInt();
        double w_num = 0;
        long p = 0;
        long q = 0;
        double sqNum = 0;
        int ans = 0;
        for (int i = 0; i < n; i++) {
            p = sc.nextLong();
            q = sc.nextLong();
            w_num = (double)Math.pow(p, 2) + (double)Math.pow(q, 2);
            sqNum = (double)Math.sqrt(w_num);
            if (sqNum <= d){
                ans += 1;
            }
          }
          sc.close();
        System.out.println(ans);
      
      }
}