import java.util.Scanner;


public class Main {
    public static void main(final String[] args) {
        final Scanner scan = new Scanner(System.in);

        final int N = scan.nextInt();
        final int D = scan.nextInt();

        int ans = 0;

        for (int i = 0; i < N; i++) {
            
            int point1 = scan.nextInt();
            int point2 = scan.nextInt();
            double dintance = Math.sqrt(Math.pow((double)point1,2)+Math.pow((double)point2,2));
            if ((dintance <= (double)D)){
                ans++;
            }
        }

        scan.close();

        System.out.println(ans);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(final String[] args) {
        final Scanner scan = new Scanner(System.in);

        final int N = scan.nextInt();
        final int D = scan.nextInt();

        int ans = 0;

        for (int i = 0; i < N; i++) {
            
            int point1 = scan.nextInt();
            int point2 = scan.nextInt();
            double dintance = Math.sqrt(Math.pow((double)point1,2)+Math.pow((double)point2,2));
            if ((dintance <= (double)D)){
                ans++;
            }
        }

        scan.close();

        System.out.println(ans);
    }
} Main public static void main(final String[] args) {
        final Scanner scan = new Scanner(System.in);

        final int N = scan.nextInt();
        final int D = scan.nextInt();

        int ans = 0;

        for (int i = 0; i < N; i++) {
            
            int point1 = scan.nextInt();
            int point2 = scan.nextInt();
            double dintance = Math.sqrt(Math.pow((double)point1,2)+Math.pow((double)point2,2));
            if ((dintance <= (double)D)){
                ans++;
            }
        }

        scan.close();

        System.out.println(ans);
    } main {
        final Scanner scan = new Scanner(System.in);

        final int N = scan.nextInt();
        final int D = scan.nextInt();

        int ans = 0;

        for (int i = 0; i < N; i++) {
            
            int point1 = scan.nextInt();
            int point2 = scan.nextInt();
            double dintance = Math.sqrt(Math.pow((double)point1,2)+Math.pow((double)point2,2));
            if ((dintance <= (double)D)){
                ans++;
            }
        }

        scan.close();

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

        final int N = scan.nextInt();
        final int D = scan.nextInt();

        int ans = 0;

        for (int i = 0; i < N; i++) {
            
            int point1 = scan.nextInt();
            int point2 = scan.nextInt();
            double dintance = Math.sqrt(Math.pow((double)point1,2)+Math.pow((double)point2,2));
            if ((dintance <= (double)D)){
                ans++;
            }
        }

        scan.close();

        System.out.println(ans);
    }
} public class Main {
    public static void main(final String[] args) {
        final Scanner scan = new Scanner(System.in);

        final int N = scan.nextInt();
        final int D = scan.nextInt();

        int ans = 0;

        for (int i = 0; i < N; i++) {
            
            int point1 = scan.nextInt();
            int point2 = scan.nextInt();
            double dintance = Math.sqrt(Math.pow((double)point1,2)+Math.pow((double)point2,2));
            if ((dintance <= (double)D)){
                ans++;
            }
        }

        scan.close();

        System.out.println(ans);
    }
} Main
import java.util.Scanner;


public class Main {
    public static void main(final String[] args) {
        final Scanner scan = new Scanner(System.in);

        final int N = scan.nextInt();
        final int D = scan.nextInt();

        int ans = 0;

        for (int i = 0; i < N; i++) {
            
            int point1 = scan.nextInt();
            int point2 = scan.nextInt();
            double dintance = Math.sqrt(Math.pow((double)point1,2)+Math.pow((double)point2,2));
            if ((dintance <= (double)D)){
                ans++;
            }
        }

        scan.close();

        System.out.println(ans);
    }
}