import java.math.BigInteger;
import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] arg = sc.nextLine().split(" ");
        int n = Integer.parseInt(arg[0]);
        String d = arg[1];

        int count = 0;
        for (int i = 0; i < n; i++) {
            String[] value = sc.nextLine().split(" ");
            BigInteger x = new BigInteger(value[0]);
            BigInteger y = new BigInteger(value[1]);
            BigInteger xs = x.multiply(x);
            BigInteger ys = y.multiply(y);
            BigInteger comp = xs.add(ys);
            BigInteger dd = new BigInteger(d);
            BigInteger ds = dd.multiply(dd);
            if(comp.compareTo(ds) <= 0) {
                count++;
            }
        }
        System.out.println(count);
    }
} import java.math.BigInteger; BigInteger java.math import java.util.Scanner; Scanner java.util class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] arg = sc.nextLine().split(" ");
        int n = Integer.parseInt(arg[0]);
        String d = arg[1];

        int count = 0;
        for (int i = 0; i < n; i++) {
            String[] value = sc.nextLine().split(" ");
            BigInteger x = new BigInteger(value[0]);
            BigInteger y = new BigInteger(value[1]);
            BigInteger xs = x.multiply(x);
            BigInteger ys = y.multiply(y);
            BigInteger comp = xs.add(ys);
            BigInteger dd = new BigInteger(d);
            BigInteger ds = dd.multiply(dd);
            if(comp.compareTo(ds) <= 0) {
                count++;
            }
        }
        System.out.println(count);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] arg = sc.nextLine().split(" ");
        int n = Integer.parseInt(arg[0]);
        String d = arg[1];

        int count = 0;
        for (int i = 0; i < n; i++) {
            String[] value = sc.nextLine().split(" ");
            BigInteger x = new BigInteger(value[0]);
            BigInteger y = new BigInteger(value[1]);
            BigInteger xs = x.multiply(x);
            BigInteger ys = y.multiply(y);
            BigInteger comp = xs.add(ys);
            BigInteger dd = new BigInteger(d);
            BigInteger ds = dd.multiply(dd);
            if(comp.compareTo(ds) <= 0) {
                count++;
            }
        }
        System.out.println(count);
    } main {
        Scanner sc = new Scanner(System.in);
        String[] arg = sc.nextLine().split(" ");
        int n = Integer.parseInt(arg[0]);
        String d = arg[1];

        int count = 0;
        for (int i = 0; i < n; i++) {
            String[] value = sc.nextLine().split(" ");
            BigInteger x = new BigInteger(value[0]);
            BigInteger y = new BigInteger(value[1]);
            BigInteger xs = x.multiply(x);
            BigInteger ys = y.multiply(y);
            BigInteger comp = xs.add(ys);
            BigInteger dd = new BigInteger(d);
            BigInteger ds = dd.multiply(dd);
            if(comp.compareTo(ds) <= 0) {
                count++;
            }
        }
        System.out.println(count);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] arg = sc.nextLine().split(" "); arg sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " int n = Integer.parseInt(arg[0]); n Integer.parseInt(arg[0]) Integer.parseInt Integer arg[0] arg 0 String d = arg[1]; d arg[1] arg 1 int count = 0; count 0 for (int i = 0; i < n; i++) {
            String[] value = sc.nextLine().split(" ");
            BigInteger x = new BigInteger(value[0]);
            BigInteger y = new BigInteger(value[1]);
            BigInteger xs = x.multiply(x);
            BigInteger ys = y.multiply(y);
            BigInteger comp = xs.add(ys);
            BigInteger dd = new BigInteger(d);
            BigInteger ds = dd.multiply(dd);
            if(comp.compareTo(ds) <= 0) {
                count++;
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            String[] value = sc.nextLine().split(" ");
            BigInteger x = new BigInteger(value[0]);
            BigInteger y = new BigInteger(value[1]);
            BigInteger xs = x.multiply(x);
            BigInteger ys = y.multiply(y);
            BigInteger comp = xs.add(ys);
            BigInteger dd = new BigInteger(d);
            BigInteger ds = dd.multiply(dd);
            if(comp.compareTo(ds) <= 0) {
                count++;
            }
        } {
            String[] value = sc.nextLine().split(" ");
            BigInteger x = new BigInteger(value[0]);
            BigInteger y = new BigInteger(value[1]);
            BigInteger xs = x.multiply(x);
            BigInteger ys = y.multiply(y);
            BigInteger comp = xs.add(ys);
            BigInteger dd = new BigInteger(d);
            BigInteger ds = dd.multiply(dd);
            if(comp.compareTo(ds) <= 0) {
                count++;
            }
        } String[] value = sc.nextLine().split(" "); value sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " BigInteger x = new BigInteger(value[0]); x new BigInteger(value[0]) BigInteger y = new BigInteger(value[1]); y new BigInteger(value[1]) BigInteger xs = x.multiply(x); xs x.multiply(x) x.multiply x x BigInteger ys = y.multiply(y); ys y.multiply(y) y.multiply y y BigInteger comp = xs.add(ys); comp xs.add(ys) xs.add xs ys BigInteger dd = new BigInteger(d); dd new BigInteger(d) BigInteger ds = dd.multiply(dd); ds dd.multiply(dd) dd.multiply dd dd if(comp.compareTo(ds) <= 0) {
                count++;
            } comp.compareTo(ds) <= 0 comp.compareTo(ds) comp.compareTo comp ds 0 {
                count++;
            } count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args
import java.math.BigInteger;
import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] arg = sc.nextLine().split(" ");
        int n = Integer.parseInt(arg[0]);
        String d = arg[1];

        int count = 0;
        for (int i = 0; i < n; i++) {
            String[] value = sc.nextLine().split(" ");
            BigInteger x = new BigInteger(value[0]);
            BigInteger y = new BigInteger(value[1]);
            BigInteger xs = x.multiply(x);
            BigInteger ys = y.multiply(y);
            BigInteger comp = xs.add(ys);
            BigInteger dd = new BigInteger(d);
            BigInteger ds = dd.multiply(dd);
            if(comp.compareTo(ds) <= 0) {
                count++;
            }
        }
        System.out.println(count);
    }
}
