import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.*;

public class Main {
    public static void main(String[] args) {
        List<String> list = new ArrayList<String>();
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int D = sc.nextInt();
        double Ans = 0;
        int count = 0;
        double an = 0;
        double an1 = 0;
        double an2 = 0;
        for(int i =0 ; i < N; i++){
            int X = sc.nextInt();
            int Y = sc.nextInt();
            Ans = Math.sqrt(Math.pow(X,2) + Math.pow(Y,2));
            if(Ans <= D){
                count++;
            }
        }
        sc.close();

        System.out.println(count);
        }
} import java.math.BigDecimal; BigDecimal java.math import java.math.RoundingMode; RoundingMode java.math import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        List<String> list = new ArrayList<String>();
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int D = sc.nextInt();
        double Ans = 0;
        int count = 0;
        double an = 0;
        double an1 = 0;
        double an2 = 0;
        for(int i =0 ; i < N; i++){
            int X = sc.nextInt();
            int Y = sc.nextInt();
            Ans = Math.sqrt(Math.pow(X,2) + Math.pow(Y,2));
            if(Ans <= D){
                count++;
            }
        }
        sc.close();

        System.out.println(count);
        }
} Main public static void main(String[] args) {
        List<String> list = new ArrayList<String>();
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int D = sc.nextInt();
        double Ans = 0;
        int count = 0;
        double an = 0;
        double an1 = 0;
        double an2 = 0;
        for(int i =0 ; i < N; i++){
            int X = sc.nextInt();
            int Y = sc.nextInt();
            Ans = Math.sqrt(Math.pow(X,2) + Math.pow(Y,2));
            if(Ans <= D){
                count++;
            }
        }
        sc.close();

        System.out.println(count);
        } main {
        List<String> list = new ArrayList<String>();
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int D = sc.nextInt();
        double Ans = 0;
        int count = 0;
        double an = 0;
        double an1 = 0;
        double an2 = 0;
        for(int i =0 ; i < N; i++){
            int X = sc.nextInt();
            int Y = sc.nextInt();
            Ans = Math.sqrt(Math.pow(X,2) + Math.pow(Y,2));
            if(Ans <= D){
                count++;
            }
        }
        sc.close();

        System.out.println(count);
        } List<String> list = new ArrayList<String>(); list new ArrayList<String>() 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 double Ans = 0; Ans 0 int count = 0; count 0 double an = 0; an 0 double an1 = 0; an1 0 double an2 = 0; an2 0 for(int i =0 ; i < N; i++){
            int X = sc.nextInt();
            int Y = sc.nextInt();
            Ans = Math.sqrt(Math.pow(X,2) + Math.pow(Y,2));
            if(Ans <= D){
                count++;
            }
        } int i =0 ; int i =0 ; i 0 i < N i N i++ i++ i {
            int X = sc.nextInt();
            int Y = sc.nextInt();
            Ans = Math.sqrt(Math.pow(X,2) + Math.pow(Y,2));
            if(Ans <= D){
                count++;
            }
        } {
            int X = sc.nextInt();
            int Y = sc.nextInt();
            Ans = Math.sqrt(Math.pow(X,2) + Math.pow(Y,2));
            if(Ans <= D){
                count++;
            }
        } int X = sc.nextInt(); X sc.nextInt() sc.nextInt sc int Y = sc.nextInt(); Y sc.nextInt() sc.nextInt sc Ans = Math.sqrt(Math.pow(X,2) + Math.pow(Y,2)) Ans Math.sqrt(Math.pow(X,2) + Math.pow(Y,2)) Math.sqrt Math Math.pow(X,2) + Math.pow(Y,2) Math.pow(X,2) Math.pow Math X 2 Math.pow(Y,2) Math.pow Math Y 2 if(Ans <= D){
                count++;
            } Ans <= D Ans D {
                count++;
            } count++ count sc.close() sc.close sc System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {
    public static void main(String[] args) {
        List<String> list = new ArrayList<String>();
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int D = sc.nextInt();
        double Ans = 0;
        int count = 0;
        double an = 0;
        double an1 = 0;
        double an2 = 0;
        for(int i =0 ; i < N; i++){
            int X = sc.nextInt();
            int Y = sc.nextInt();
            Ans = Math.sqrt(Math.pow(X,2) + Math.pow(Y,2));
            if(Ans <= D){
                count++;
            }
        }
        sc.close();

        System.out.println(count);
        }
} public class Main {
    public static void main(String[] args) {
        List<String> list = new ArrayList<String>();
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int D = sc.nextInt();
        double Ans = 0;
        int count = 0;
        double an = 0;
        double an1 = 0;
        double an2 = 0;
        for(int i =0 ; i < N; i++){
            int X = sc.nextInt();
            int Y = sc.nextInt();
            Ans = Math.sqrt(Math.pow(X,2) + Math.pow(Y,2));
            if(Ans <= D){
                count++;
            }
        }
        sc.close();

        System.out.println(count);
        }
} Main
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.*;

public class Main {
    public static void main(String[] args) {
        List<String> list = new ArrayList<String>();
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int D = sc.nextInt();
        double Ans = 0;
        int count = 0;
        double an = 0;
        double an1 = 0;
        double an2 = 0;
        for(int i =0 ; i < N; i++){
            int X = sc.nextInt();
            int Y = sc.nextInt();
            Ans = Math.sqrt(Math.pow(X,2) + Math.pow(Y,2));
            if(Ans <= D){
                count++;
            }
        }
        sc.close();

        System.out.println(count);
        }
}
