import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n, d, x, y, num = 0;
        n = sc.nextInt();
        d = sc.nextInt();
        for (int i = 0; i < n; i++) {
            x = sc.nextInt();
            y = sc.nextInt();
            double dist = Math.sqrt(Math.pow(x, 2)+Math.pow(y, 2));
            if(dist <= d) ++num;
        }
        System.out.println(num);
        sc.close();
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n, d, x, y, num = 0;
        n = sc.nextInt();
        d = sc.nextInt();
        for (int i = 0; i < n; i++) {
            x = sc.nextInt();
            y = sc.nextInt();
            double dist = Math.sqrt(Math.pow(x, 2)+Math.pow(y, 2));
            if(dist <= d) ++num;
        }
        System.out.println(num);
        sc.close();
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n, d, x, y, num = 0;
        n = sc.nextInt();
        d = sc.nextInt();
        for (int i = 0; i < n; i++) {
            x = sc.nextInt();
            y = sc.nextInt();
            double dist = Math.sqrt(Math.pow(x, 2)+Math.pow(y, 2));
            if(dist <= d) ++num;
        }
        System.out.println(num);
        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        int n, d, x, y, num = 0;
        n = sc.nextInt();
        d = sc.nextInt();
        for (int i = 0; i < n; i++) {
            x = sc.nextInt();
            y = sc.nextInt();
            double dist = Math.sqrt(Math.pow(x, 2)+Math.pow(y, 2));
            if(dist <= d) ++num;
        }
        System.out.println(num);
        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n n d d x x y y num = 0; num 0 n = sc.nextInt() n sc.nextInt() sc.nextInt sc d = sc.nextInt() d sc.nextInt() sc.nextInt sc for (int i = 0; i < n; i++) {
            x = sc.nextInt();
            y = sc.nextInt();
            double dist = Math.sqrt(Math.pow(x, 2)+Math.pow(y, 2));
            if(dist <= d) ++num;
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            x = sc.nextInt();
            y = sc.nextInt();
            double dist = Math.sqrt(Math.pow(x, 2)+Math.pow(y, 2));
            if(dist <= d) ++num;
        } {
            x = sc.nextInt();
            y = sc.nextInt();
            double dist = Math.sqrt(Math.pow(x, 2)+Math.pow(y, 2));
            if(dist <= d) ++num;
        } x = sc.nextInt() x sc.nextInt() sc.nextInt sc y = sc.nextInt() y sc.nextInt() sc.nextInt sc double dist = Math.sqrt(Math.pow(x, 2)+Math.pow(y, 2)); dist 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(dist <= d) ++num; dist <= d dist d ++num num System.out.println(num) System.out.println System.out System System.out num sc.close() sc.close sc String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n, d, x, y, num = 0;
        n = sc.nextInt();
        d = sc.nextInt();
        for (int i = 0; i < n; i++) {
            x = sc.nextInt();
            y = sc.nextInt();
            double dist = Math.sqrt(Math.pow(x, 2)+Math.pow(y, 2));
            if(dist <= d) ++num;
        }
        System.out.println(num);
        sc.close();
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n, d, x, y, num = 0;
        n = sc.nextInt();
        d = sc.nextInt();
        for (int i = 0; i < n; i++) {
            x = sc.nextInt();
            y = sc.nextInt();
            double dist = Math.sqrt(Math.pow(x, 2)+Math.pow(y, 2));
            if(dist <= d) ++num;
        }
        System.out.println(num);
        sc.close();
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n, d, x, y, num = 0;
        n = sc.nextInt();
        d = sc.nextInt();
        for (int i = 0; i < n; i++) {
            x = sc.nextInt();
            y = sc.nextInt();
            double dist = Math.sqrt(Math.pow(x, 2)+Math.pow(y, 2));
            if(dist <= d) ++num;
        }
        System.out.println(num);
        sc.close();
    }
}
