import java.util.*;


public class Main {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int point = sc.nextInt();
        int distance = sc.nextInt();
        int ans = 0;
        for (int i = 0; i < point; i++){
            double p = sc.nextInt();
            double q = sc.nextInt();
        if (distance >= (Math.sqrt(p * p + q * q))) {
            ans++;
        }
    }
        System.out.println(ans);        
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int point = sc.nextInt();
        int distance = sc.nextInt();
        int ans = 0;
        for (int i = 0; i < point; i++){
            double p = sc.nextInt();
            double q = sc.nextInt();
        if (distance >= (Math.sqrt(p * p + q * q))) {
            ans++;
        }
    }
        System.out.println(ans);        
    }
} Main public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int point = sc.nextInt();
        int distance = sc.nextInt();
        int ans = 0;
        for (int i = 0; i < point; i++){
            double p = sc.nextInt();
            double q = sc.nextInt();
        if (distance >= (Math.sqrt(p * p + q * q))) {
            ans++;
        }
    }
        System.out.println(ans);        
    } main {

        Scanner sc = new Scanner(System.in);
        int point = sc.nextInt();
        int distance = sc.nextInt();
        int ans = 0;
        for (int i = 0; i < point; i++){
            double p = sc.nextInt();
            double q = sc.nextInt();
        if (distance >= (Math.sqrt(p * p + q * q))) {
            ans++;
        }
    }
        System.out.println(ans);        
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int point = sc.nextInt(); point sc.nextInt() sc.nextInt sc int distance = sc.nextInt(); distance sc.nextInt() sc.nextInt sc int ans = 0; ans 0 for (int i = 0; i < point; i++){
            double p = sc.nextInt();
            double q = sc.nextInt();
        if (distance >= (Math.sqrt(p * p + q * q))) {
            ans++;
        }
    } int i = 0; int i = 0; i 0 i < point i point i++ i++ i {
            double p = sc.nextInt();
            double q = sc.nextInt();
        if (distance >= (Math.sqrt(p * p + q * q))) {
            ans++;
        }
    } {
            double p = sc.nextInt();
            double q = sc.nextInt();
        if (distance >= (Math.sqrt(p * p + q * q))) {
            ans++;
        }
    } double p = sc.nextInt(); p sc.nextInt() sc.nextInt sc double q = sc.nextInt(); q sc.nextInt() sc.nextInt sc if (distance >= (Math.sqrt(p * p + q * q))) {
            ans++;
        } distance >= (Math.sqrt(p * p + q * q)) distance (Math.sqrt(p * p + q * q)) Math.sqrt Math p * p + q * q p * p p p q * q q q {
            ans++;
        } ans++ ans System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int point = sc.nextInt();
        int distance = sc.nextInt();
        int ans = 0;
        for (int i = 0; i < point; i++){
            double p = sc.nextInt();
            double q = sc.nextInt();
        if (distance >= (Math.sqrt(p * p + q * q))) {
            ans++;
        }
    }
        System.out.println(ans);        
    }
} public class Main {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int point = sc.nextInt();
        int distance = sc.nextInt();
        int ans = 0;
        for (int i = 0; i < point; i++){
            double p = sc.nextInt();
            double q = sc.nextInt();
        if (distance >= (Math.sqrt(p * p + q * q))) {
            ans++;
        }
    }
        System.out.println(ans);        
    }
} Main
import java.util.*;


public class Main {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int point = sc.nextInt();
        int distance = sc.nextInt();
        int ans = 0;
        for (int i = 0; i < point; i++){
            double p = sc.nextInt();
            double q = sc.nextInt();
        if (distance >= (Math.sqrt(p * p + q * q))) {
            ans++;
        }
    }
        System.out.println(ans);        
    }
}