import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int D = sc.nextInt();
        int[] Xz = new int[N];
        int[] Yz = new int[N];
        for (int i = 0; i < N; i++){
            Xz[i] = sc.nextInt();
            Yz[i] = sc.nextInt();
        }
        double ans = 0;
        int cnt = 0;
        for (int i = 0; i < N; i++){
            ans = Math.sqrt(Math.pow(Xz[i], 2) + Math.pow(Yz[i], 2));
            if (ans <= D){
                cnt++;
            }
        }
        System.out.println(cnt);

    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int D = sc.nextInt();
        int[] Xz = new int[N];
        int[] Yz = new int[N];
        for (int i = 0; i < N; i++){
            Xz[i] = sc.nextInt();
            Yz[i] = sc.nextInt();
        }
        double ans = 0;
        int cnt = 0;
        for (int i = 0; i < N; i++){
            ans = Math.sqrt(Math.pow(Xz[i], 2) + Math.pow(Yz[i], 2));
            if (ans <= D){
                cnt++;
            }
        }
        System.out.println(cnt);

    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int D = sc.nextInt();
        int[] Xz = new int[N];
        int[] Yz = new int[N];
        for (int i = 0; i < N; i++){
            Xz[i] = sc.nextInt();
            Yz[i] = sc.nextInt();
        }
        double ans = 0;
        int cnt = 0;
        for (int i = 0; i < N; i++){
            ans = Math.sqrt(Math.pow(Xz[i], 2) + Math.pow(Yz[i], 2));
            if (ans <= D){
                cnt++;
            }
        }
        System.out.println(cnt);

    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int D = sc.nextInt();
        int[] Xz = new int[N];
        int[] Yz = new int[N];
        for (int i = 0; i < N; i++){
            Xz[i] = sc.nextInt();
            Yz[i] = sc.nextInt();
        }
        double ans = 0;
        int cnt = 0;
        for (int i = 0; i < N; i++){
            ans = Math.sqrt(Math.pow(Xz[i], 2) + Math.pow(Yz[i], 2));
            if (ans <= D){
                cnt++;
            }
        }
        System.out.println(cnt);

    } Scanner 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 int[] Xz = new int[N]; Xz new int[N] N int[] Yz = new int[N]; Yz new int[N] N for (int i = 0; i < N; i++){
            Xz[i] = sc.nextInt();
            Yz[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            Xz[i] = sc.nextInt();
            Yz[i] = sc.nextInt();
        } {
            Xz[i] = sc.nextInt();
            Yz[i] = sc.nextInt();
        } Xz[i] = sc.nextInt() Xz[i] Xz i sc.nextInt() sc.nextInt sc Yz[i] = sc.nextInt() Yz[i] Yz i sc.nextInt() sc.nextInt sc double ans = 0; ans 0 int cnt = 0; cnt 0 for (int i = 0; i < N; i++){
            ans = Math.sqrt(Math.pow(Xz[i], 2) + Math.pow(Yz[i], 2));
            if (ans <= D){
                cnt++;
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            ans = Math.sqrt(Math.pow(Xz[i], 2) + Math.pow(Yz[i], 2));
            if (ans <= D){
                cnt++;
            }
        } {
            ans = Math.sqrt(Math.pow(Xz[i], 2) + Math.pow(Yz[i], 2));
            if (ans <= D){
                cnt++;
            }
        } ans = Math.sqrt(Math.pow(Xz[i], 2) + Math.pow(Yz[i], 2)) ans Math.sqrt(Math.pow(Xz[i], 2) + Math.pow(Yz[i], 2)) Math.sqrt Math Math.pow(Xz[i], 2) + Math.pow(Yz[i], 2) Math.pow(Xz[i], 2) Math.pow Math Xz[i] Xz i 2 Math.pow(Yz[i], 2) Math.pow Math Yz[i] Yz i 2 if (ans <= D){
                cnt++;
            } ans <= D ans D {
                cnt++;
            } cnt++ cnt System.out.println(cnt) System.out.println System.out System System.out cnt String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int D = sc.nextInt();
        int[] Xz = new int[N];
        int[] Yz = new int[N];
        for (int i = 0; i < N; i++){
            Xz[i] = sc.nextInt();
            Yz[i] = sc.nextInt();
        }
        double ans = 0;
        int cnt = 0;
        for (int i = 0; i < N; i++){
            ans = Math.sqrt(Math.pow(Xz[i], 2) + Math.pow(Yz[i], 2));
            if (ans <= D){
                cnt++;
            }
        }
        System.out.println(cnt);

    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int D = sc.nextInt();
        int[] Xz = new int[N];
        int[] Yz = new int[N];
        for (int i = 0; i < N; i++){
            Xz[i] = sc.nextInt();
            Yz[i] = sc.nextInt();
        }
        double ans = 0;
        int cnt = 0;
        for (int i = 0; i < N; i++){
            ans = Math.sqrt(Math.pow(Xz[i], 2) + Math.pow(Yz[i], 2));
            if (ans <= D){
                cnt++;
            }
        }
        System.out.println(cnt);

    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int D = sc.nextInt();
        int[] Xz = new int[N];
        int[] Yz = new int[N];
        for (int i = 0; i < N; i++){
            Xz[i] = sc.nextInt();
            Yz[i] = sc.nextInt();
        }
        double ans = 0;
        int cnt = 0;
        for (int i = 0; i < N; i++){
            ans = Math.sqrt(Math.pow(Xz[i], 2) + Math.pow(Yz[i], 2));
            if (ans <= D){
                cnt++;
            }
        }
        System.out.println(cnt);

    }
}