import java.util.*;

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

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