import java.util.*;
import java.io.*;
import 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 x = sc.nextDouble();
            double y = sc.nextDouble();

            double area = Math.sqrt( (x*x) + (y*y) );
            if (area<=d)
                ans++;
        }

        System.out.println(ans);
    }
} import java.util.*; util.* java import java.io.*; io.* java import java.lang.*; lang.* 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 ans = 0;

        for (int i = 0; i<n ; i++){
            double x = sc.nextDouble();
            double y = sc.nextDouble();

            double area = Math.sqrt( (x*x) + (y*y) );
            if (area<=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 x = sc.nextDouble();
            double y = sc.nextDouble();

            double area = Math.sqrt( (x*x) + (y*y) );
            if (area<=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 x = sc.nextDouble();
            double y = sc.nextDouble();

            double area = Math.sqrt( (x*x) + (y*y) );
            if (area<=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 x = sc.nextDouble();
            double y = sc.nextDouble();

            double area = Math.sqrt( (x*x) + (y*y) );
            if (area<=d)
                ans++;
        } int i = 0; int i = 0; i 0 i<n i n i++ i++ i {
            double x = sc.nextDouble();
            double y = sc.nextDouble();

            double area = Math.sqrt( (x*x) + (y*y) );
            if (area<=d)
                ans++;
        } {
            double x = sc.nextDouble();
            double y = sc.nextDouble();

            double area = Math.sqrt( (x*x) + (y*y) );
            if (area<=d)
                ans++;
        } double x = sc.nextDouble(); x sc.nextDouble() sc.nextDouble sc double y = sc.nextDouble(); y sc.nextDouble() sc.nextDouble sc double area = Math.sqrt( (x*x) + (y*y) ); area Math.sqrt( (x*x) + (y*y) ) Math.sqrt Math (x*x) + (y*y) (x*x) x x (y*y) y y if (area<=d)
                ans++; area<=d area d 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 x = sc.nextDouble();
            double y = sc.nextDouble();

            double area = Math.sqrt( (x*x) + (y*y) );
            if (area<=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 x = sc.nextDouble();
            double y = sc.nextDouble();

            double area = Math.sqrt( (x*x) + (y*y) );
            if (area<=d)
                ans++;
        }

        System.out.println(ans);
    }
} Main
import java.util.*;
import java.io.*;
import 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 x = sc.nextDouble();
            double y = sc.nextDouble();

            double area = Math.sqrt( (x*x) + (y*y) );
            if (area<=d)
                ans++;
        }

        System.out.println(ans);
    }
}