import java.util.Scanner;

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

        long n = scan.nextLong(), d = scan.nextLong(), cnt = 0;
        long x[] = new long[(int)n], y[] = new long[(int)n];
        for(int i = 0; i < x.length; i++) {
            x[i] = scan.nextLong();
            y[i] = scan.nextLong();

            if(x[i] * x[i] + y[i] * y[i] <= d * d) {
                cnt ++;
            }
        }

        System.out.println(cnt);

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

        long n = scan.nextLong(), d = scan.nextLong(), cnt = 0;
        long x[] = new long[(int)n], y[] = new long[(int)n];
        for(int i = 0; i < x.length; i++) {
            x[i] = scan.nextLong();
            y[i] = scan.nextLong();

            if(x[i] * x[i] + y[i] * y[i] <= d * d) {
                cnt ++;
            }
        }

        System.out.println(cnt);

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

        long n = scan.nextLong(), d = scan.nextLong(), cnt = 0;
        long x[] = new long[(int)n], y[] = new long[(int)n];
        for(int i = 0; i < x.length; i++) {
            x[i] = scan.nextLong();
            y[i] = scan.nextLong();

            if(x[i] * x[i] + y[i] * y[i] <= d * d) {
                cnt ++;
            }
        }

        System.out.println(cnt);

        scan.close();
        return;
    } main {
        Scanner scan = new Scanner(System.in);

        long n = scan.nextLong(), d = scan.nextLong(), cnt = 0;
        long x[] = new long[(int)n], y[] = new long[(int)n];
        for(int i = 0; i < x.length; i++) {
            x[i] = scan.nextLong();
            y[i] = scan.nextLong();

            if(x[i] * x[i] + y[i] * y[i] <= d * d) {
                cnt ++;
            }
        }

        System.out.println(cnt);

        scan.close();
        return;
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) long n = scan.nextLong() n scan.nextLong() scan.nextLong scan d = scan.nextLong() d scan.nextLong() scan.nextLong scan cnt = 0; cnt 0 long x[] = new long[(int)n] x new long[(int)n] (int)n y[] = new long[(int)n]; y new long[(int)n] (int)n for(int i = 0; i < x.length; i++) {
            x[i] = scan.nextLong();
            y[i] = scan.nextLong();

            if(x[i] * x[i] + y[i] * y[i] <= d * d) {
                cnt ++;
            }
        } int i = 0; int i = 0; i 0 i < x.length i x.length x x.length i++ i++ i {
            x[i] = scan.nextLong();
            y[i] = scan.nextLong();

            if(x[i] * x[i] + y[i] * y[i] <= d * d) {
                cnt ++;
            }
        } {
            x[i] = scan.nextLong();
            y[i] = scan.nextLong();

            if(x[i] * x[i] + y[i] * y[i] <= d * d) {
                cnt ++;
            }
        } x[i] = scan.nextLong() x[i] x i scan.nextLong() scan.nextLong scan y[i] = scan.nextLong() y[i] y i scan.nextLong() scan.nextLong scan if(x[i] * x[i] + y[i] * y[i] <= d * d) {
                cnt ++;
            } x[i] * x[i] + y[i] * y[i] <= d * d x[i] * x[i] + y[i] * y[i] x[i] * x[i] x[i] x i x[i] x i y[i] * y[i] y[i] y i y[i] y i d * d d d {
                cnt ++;
            } cnt ++ cnt System.out.println(cnt) System.out.println System.out System System.out cnt scan.close() scan.close scan return; String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);

        long n = scan.nextLong(), d = scan.nextLong(), cnt = 0;
        long x[] = new long[(int)n], y[] = new long[(int)n];
        for(int i = 0; i < x.length; i++) {
            x[i] = scan.nextLong();
            y[i] = scan.nextLong();

            if(x[i] * x[i] + y[i] * y[i] <= d * d) {
                cnt ++;
            }
        }

        System.out.println(cnt);

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

        long n = scan.nextLong(), d = scan.nextLong(), cnt = 0;
        long x[] = new long[(int)n], y[] = new long[(int)n];
        for(int i = 0; i < x.length; i++) {
            x[i] = scan.nextLong();
            y[i] = scan.nextLong();

            if(x[i] * x[i] + y[i] * y[i] <= d * d) {
                cnt ++;
            }
        }

        System.out.println(cnt);

        scan.close();
        return;
    }
} Main
import java.util.Scanner;

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

        long n = scan.nextLong(), d = scan.nextLong(), cnt = 0;
        long x[] = new long[(int)n], y[] = new long[(int)n];
        for(int i = 0; i < x.length; i++) {
            x[i] = scan.nextLong();
            y[i] = scan.nextLong();

            if(x[i] * x[i] + y[i] * y[i] <= d * d) {
                cnt ++;
            }
        }

        System.out.println(cnt);

        scan.close();
        return;
    }
}