import java.util.HashMap;
import java.util.Scanner;
import java.util.stream.IntStream;
import java.lang.Math;

public class Main {
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int d = sc.nextInt();

        int ans = 0;
        for(int i = 0; i < n; i++){
            double key = sc.nextDouble();
            double value = sc.nextDouble();
            double r = Math.pow(key, 2) + Math.pow(value, 2);
            double a = Math.sqrt(r);
            if(a <= d){
                ans++;
            }
        }
        System.out.println(ans);
    }
} import java.util.HashMap; HashMap java.util import java.util.Scanner; Scanner java.util import java.util.stream.IntStream; IntStream java.util.stream import java.lang.Math; Math java.lang public class Main {
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int d = sc.nextInt();

        int ans = 0;
        for(int i = 0; i < n; i++){
            double key = sc.nextDouble();
            double value = sc.nextDouble();
            double r = Math.pow(key, 2) + Math.pow(value, 2);
            double a = Math.sqrt(r);
            if(a <= d){
                ans++;
            }
        }
        System.out.println(ans);
    }
} Main public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int d = sc.nextInt();

        int ans = 0;
        for(int i = 0; i < n; i++){
            double key = sc.nextDouble();
            double value = sc.nextDouble();
            double r = Math.pow(key, 2) + Math.pow(value, 2);
            double a = Math.sqrt(r);
            if(a <= d){
                ans++;
            }
        }
        System.out.println(ans);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int d = sc.nextInt();

        int ans = 0;
        for(int i = 0; i < n; i++){
            double key = sc.nextDouble();
            double value = sc.nextDouble();
            double r = Math.pow(key, 2) + Math.pow(value, 2);
            double a = Math.sqrt(r);
            if(a <= d){
                ans++;
            }
        }
        System.out.println(ans);
    } 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 ans = 0; ans 0 for(int i = 0; i < n; i++){
            double key = sc.nextDouble();
            double value = sc.nextDouble();
            double r = Math.pow(key, 2) + Math.pow(value, 2);
            double a = Math.sqrt(r);
            if(a <= d){
                ans++;
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            double key = sc.nextDouble();
            double value = sc.nextDouble();
            double r = Math.pow(key, 2) + Math.pow(value, 2);
            double a = Math.sqrt(r);
            if(a <= d){
                ans++;
            }
        } {
            double key = sc.nextDouble();
            double value = sc.nextDouble();
            double r = Math.pow(key, 2) + Math.pow(value, 2);
            double a = Math.sqrt(r);
            if(a <= d){
                ans++;
            }
        } double key = sc.nextDouble(); key sc.nextDouble() sc.nextDouble sc double value = sc.nextDouble(); value sc.nextDouble() sc.nextDouble sc double r = Math.pow(key, 2) + Math.pow(value, 2); r Math.pow(key, 2) + Math.pow(value, 2) Math.pow(key, 2) Math.pow Math key 2 Math.pow(value, 2) Math.pow Math value 2 double a = Math.sqrt(r); a Math.sqrt(r) Math.sqrt Math r if(a <= d){
                ans++;
            } a <= d a d {
                ans++;
            } ans++ ans 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 = new Scanner(System.in);
        int n = sc.nextInt();
        int d = sc.nextInt();

        int ans = 0;
        for(int i = 0; i < n; i++){
            double key = sc.nextDouble();
            double value = sc.nextDouble();
            double r = Math.pow(key, 2) + Math.pow(value, 2);
            double a = Math.sqrt(r);
            if(a <= d){
                ans++;
            }
        }
        System.out.println(ans);
    }
} public class Main {
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int d = sc.nextInt();

        int ans = 0;
        for(int i = 0; i < n; i++){
            double key = sc.nextDouble();
            double value = sc.nextDouble();
            double r = Math.pow(key, 2) + Math.pow(value, 2);
            double a = Math.sqrt(r);
            if(a <= d){
                ans++;
            }
        }
        System.out.println(ans);
    }
} Main
import java.util.HashMap;
import java.util.Scanner;
import java.util.stream.IntStream;
import java.lang.Math;

public class Main {
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int d = sc.nextInt();

        int ans = 0;
        for(int i = 0; i < n; i++){
            double key = sc.nextDouble();
            double value = sc.nextDouble();
            double r = Math.pow(key, 2) + Math.pow(value, 2);
            double a = Math.sqrt(r);
            if(a <= d){
                ans++;
            }
        }
        System.out.println(ans);
    }
}