import java.util.Scanner;

public class Main {
    //B - Distance
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        double D = scan.nextDouble();

        int overCount = 0;

        while (N-- > 0) {
            double X = scan.nextDouble();
            double Y = scan.nextDouble();
            double dis = Math.sqrt(Math.pow(X, 2) + Math.pow(Y, 2));
            if (dis <= D) {
                overCount++;
            }
        }
        System.out.println(overCount);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    //B - Distance
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        double D = scan.nextDouble();

        int overCount = 0;

        while (N-- > 0) {
            double X = scan.nextDouble();
            double Y = scan.nextDouble();
            double dis = Math.sqrt(Math.pow(X, 2) + Math.pow(Y, 2));
            if (dis <= D) {
                overCount++;
            }
        }
        System.out.println(overCount);
    }
} Main //B - Distance
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        double D = scan.nextDouble();

        int overCount = 0;

        while (N-- > 0) {
            double X = scan.nextDouble();
            double Y = scan.nextDouble();
            double dis = Math.sqrt(Math.pow(X, 2) + Math.pow(Y, 2));
            if (dis <= D) {
                overCount++;
            }
        }
        System.out.println(overCount);
    } main {
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        double D = scan.nextDouble();

        int overCount = 0;

        while (N-- > 0) {
            double X = scan.nextDouble();
            double Y = scan.nextDouble();
            double dis = Math.sqrt(Math.pow(X, 2) + Math.pow(Y, 2));
            if (dis <= D) {
                overCount++;
            }
        }
        System.out.println(overCount);
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan double D = scan.nextDouble(); D scan.nextDouble() scan.nextDouble scan int overCount = 0; overCount 0 while (N-- > 0) {
            double X = scan.nextDouble();
            double Y = scan.nextDouble();
            double dis = Math.sqrt(Math.pow(X, 2) + Math.pow(Y, 2));
            if (dis <= D) {
                overCount++;
            }
        } N-- > 0 N-- N 0 {
            double X = scan.nextDouble();
            double Y = scan.nextDouble();
            double dis = Math.sqrt(Math.pow(X, 2) + Math.pow(Y, 2));
            if (dis <= D) {
                overCount++;
            }
        } double X = scan.nextDouble(); X scan.nextDouble() scan.nextDouble scan double Y = scan.nextDouble(); Y scan.nextDouble() scan.nextDouble scan double dis = Math.sqrt(Math.pow(X, 2) + Math.pow(Y, 2)); dis 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 (dis <= D) {
                overCount++;
            } dis <= D dis D {
                overCount++;
            } overCount++ overCount System.out.println(overCount) System.out.println System.out System System.out overCount String[] args args public class Main {
    //B - Distance
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        double D = scan.nextDouble();

        int overCount = 0;

        while (N-- > 0) {
            double X = scan.nextDouble();
            double Y = scan.nextDouble();
            double dis = Math.sqrt(Math.pow(X, 2) + Math.pow(Y, 2));
            if (dis <= D) {
                overCount++;
            }
        }
        System.out.println(overCount);
    }
} public class Main {
    //B - Distance
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        double D = scan.nextDouble();

        int overCount = 0;

        while (N-- > 0) {
            double X = scan.nextDouble();
            double Y = scan.nextDouble();
            double dis = Math.sqrt(Math.pow(X, 2) + Math.pow(Y, 2));
            if (dis <= D) {
                overCount++;
            }
        }
        System.out.println(overCount);
    }
} Main
import java.util.Scanner;

public class Main {
    //B - Distance
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        double D = scan.nextDouble();

        int overCount = 0;

        while (N-- > 0) {
            double X = scan.nextDouble();
            double Y = scan.nextDouble();
            double dis = Math.sqrt(Math.pow(X, 2) + Math.pow(Y, 2));
            if (dis <= D) {
                overCount++;
            }
        }
        System.out.println(overCount);
    }
}