import java.util.*;
import java.lang.Math;
public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        long N = sc.nextLong();
        long D = sc.nextLong();
        int counter = 0;
        for(int i = 0;i < N;i++){
            long X = sc.nextLong();
            long Y = sc.nextLong();
            if(D*D >= (X*X + Y*Y)){
                counter++;
            }
        }
        System.out.println(counter);
    }
} import java.util.*; util.* java import java.lang.Math; Math java.lang public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        long N = sc.nextLong();
        long D = sc.nextLong();
        int counter = 0;
        for(int i = 0;i < N;i++){
            long X = sc.nextLong();
            long Y = sc.nextLong();
            if(D*D >= (X*X + Y*Y)){
                counter++;
            }
        }
        System.out.println(counter);
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        long N = sc.nextLong();
        long D = sc.nextLong();
        int counter = 0;
        for(int i = 0;i < N;i++){
            long X = sc.nextLong();
            long Y = sc.nextLong();
            if(D*D >= (X*X + Y*Y)){
                counter++;
            }
        }
        System.out.println(counter);
    } main {
        Scanner sc = new Scanner(System.in);
        long N = sc.nextLong();
        long D = sc.nextLong();
        int counter = 0;
        for(int i = 0;i < N;i++){
            long X = sc.nextLong();
            long Y = sc.nextLong();
            if(D*D >= (X*X + Y*Y)){
                counter++;
            }
        }
        System.out.println(counter);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) long N = sc.nextLong(); N sc.nextLong() sc.nextLong sc long D = sc.nextLong(); D sc.nextLong() sc.nextLong sc int counter = 0; counter 0 for(int i = 0;i < N;i++){
            long X = sc.nextLong();
            long Y = sc.nextLong();
            if(D*D >= (X*X + Y*Y)){
                counter++;
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            long X = sc.nextLong();
            long Y = sc.nextLong();
            if(D*D >= (X*X + Y*Y)){
                counter++;
            }
        } {
            long X = sc.nextLong();
            long Y = sc.nextLong();
            if(D*D >= (X*X + Y*Y)){
                counter++;
            }
        } long X = sc.nextLong(); X sc.nextLong() sc.nextLong sc long Y = sc.nextLong(); Y sc.nextLong() sc.nextLong sc if(D*D >= (X*X + Y*Y)){
                counter++;
            } D*D >= (X*X + Y*Y) D*D D D (X*X + Y*Y) X*X X X Y*Y Y Y {
                counter++;
            } counter++ counter System.out.println(counter) System.out.println System.out System System.out counter String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        long N = sc.nextLong();
        long D = sc.nextLong();
        int counter = 0;
        for(int i = 0;i < N;i++){
            long X = sc.nextLong();
            long Y = sc.nextLong();
            if(D*D >= (X*X + Y*Y)){
                counter++;
            }
        }
        System.out.println(counter);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        long N = sc.nextLong();
        long D = sc.nextLong();
        int counter = 0;
        for(int i = 0;i < N;i++){
            long X = sc.nextLong();
            long Y = sc.nextLong();
            if(D*D >= (X*X + Y*Y)){
                counter++;
            }
        }
        System.out.println(counter);
    }
} Main
import java.util.*;
import java.lang.Math;
public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        long N = sc.nextLong();
        long D = sc.nextLong();
        int counter = 0;
        for(int i = 0;i < N;i++){
            long X = sc.nextLong();
            long Y = sc.nextLong();
            if(D*D >= (X*X + Y*Y)){
                counter++;
            }
        }
        System.out.println(counter);
    }
}
