import java.util.*;

public class Main {

    public static void main (String[] args) {
        Scanner sc = new Scanner(System.in);
        long n = sc.nextLong(), d = sc.nextLong(), count  = 0;
        while (n-->0){
            long a = sc.nextLong(), b = sc.nextLong();
            if(((a*a)+(b*b)) <= (d*d)){
                count++;
            }
        }
        System.out.println(count);
    }
} import java.util.*; util.* java public class Main {

    public static void main (String[] args) {
        Scanner sc = new Scanner(System.in);
        long n = sc.nextLong(), d = sc.nextLong(), count  = 0;
        while (n-->0){
            long a = sc.nextLong(), b = sc.nextLong();
            if(((a*a)+(b*b)) <= (d*d)){
                count++;
            }
        }
        System.out.println(count);
    }
} Main public static void main (String[] args) {
        Scanner sc = new Scanner(System.in);
        long n = sc.nextLong(), d = sc.nextLong(), count  = 0;
        while (n-->0){
            long a = sc.nextLong(), b = sc.nextLong();
            if(((a*a)+(b*b)) <= (d*d)){
                count++;
            }
        }
        System.out.println(count);
    } main {
        Scanner sc = new Scanner(System.in);
        long n = sc.nextLong(), d = sc.nextLong(), count  = 0;
        while (n-->0){
            long a = sc.nextLong(), b = sc.nextLong();
            if(((a*a)+(b*b)) <= (d*d)){
                count++;
            }
        }
        System.out.println(count);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) long n = sc.nextLong() n sc.nextLong() sc.nextLong sc d = sc.nextLong() d sc.nextLong() sc.nextLong sc count  = 0; count 0 while (n-->0){
            long a = sc.nextLong(), b = sc.nextLong();
            if(((a*a)+(b*b)) <= (d*d)){
                count++;
            }
        } n-->0 n-- n 0 {
            long a = sc.nextLong(), b = sc.nextLong();
            if(((a*a)+(b*b)) <= (d*d)){
                count++;
            }
        } long a = sc.nextLong() a sc.nextLong() sc.nextLong sc b = sc.nextLong(); b sc.nextLong() sc.nextLong sc if(((a*a)+(b*b)) <= (d*d)){
                count++;
            } ((a*a)+(b*b)) <= (d*d) ((a*a)+(b*b)) (a*a) a a (b*b) b b (d*d) d d {
                count++;
            } count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {

    public static void main (String[] args) {
        Scanner sc = new Scanner(System.in);
        long n = sc.nextLong(), d = sc.nextLong(), count  = 0;
        while (n-->0){
            long a = sc.nextLong(), b = sc.nextLong();
            if(((a*a)+(b*b)) <= (d*d)){
                count++;
            }
        }
        System.out.println(count);
    }
} public class Main {

    public static void main (String[] args) {
        Scanner sc = new Scanner(System.in);
        long n = sc.nextLong(), d = sc.nextLong(), count  = 0;
        while (n-->0){
            long a = sc.nextLong(), b = sc.nextLong();
            if(((a*a)+(b*b)) <= (d*d)){
                count++;
            }
        }
        System.out.println(count);
    }
} Main
import java.util.*;

public class Main {

    public static void main (String[] args) {
        Scanner sc = new Scanner(System.in);
        long n = sc.nextLong(), d = sc.nextLong(), count  = 0;
        while (n-->0){
            long a = sc.nextLong(), b = sc.nextLong();
            if(((a*a)+(b*b)) <= (d*d)){
                count++;
            }
        }
        System.out.println(count);
    }
}