import java.util.*;

class Main
{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        int n = sc.nextInt();
        int d = sc.nextInt();
        
        double[][] array = new double[n][2];
        int count = 0;
        for (int i = 0; i < array.length; i++) {
            array[i][0] = sc.nextDouble();
            array[i][1] = sc.nextDouble();
            
            double result = Math.sqrt(Math.pow(array[i][0], 2) + Math.pow(array[i][1], 2));
            if (result <= d) {
                count++;
            }
        }
        
        System.out.println(count);
    }
} import java.util.*; util.* java class Main
{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        int n = sc.nextInt();
        int d = sc.nextInt();
        
        double[][] array = new double[n][2];
        int count = 0;
        for (int i = 0; i < array.length; i++) {
            array[i][0] = sc.nextDouble();
            array[i][1] = sc.nextDouble();
            
            double result = Math.sqrt(Math.pow(array[i][0], 2) + Math.pow(array[i][1], 2));
            if (result <= d) {
                count++;
            }
        }
        
        System.out.println(count);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        int n = sc.nextInt();
        int d = sc.nextInt();
        
        double[][] array = new double[n][2];
        int count = 0;
        for (int i = 0; i < array.length; i++) {
            array[i][0] = sc.nextDouble();
            array[i][1] = sc.nextDouble();
            
            double result = Math.sqrt(Math.pow(array[i][0], 2) + Math.pow(array[i][1], 2));
            if (result <= d) {
                count++;
            }
        }
        
        System.out.println(count);
    } main {
        Scanner sc = new Scanner(System.in);
        
        int n = sc.nextInt();
        int d = sc.nextInt();
        
        double[][] array = new double[n][2];
        int count = 0;
        for (int i = 0; i < array.length; i++) {
            array[i][0] = sc.nextDouble();
            array[i][1] = sc.nextDouble();
            
            double result = Math.sqrt(Math.pow(array[i][0], 2) + Math.pow(array[i][1], 2));
            if (result <= d) {
                count++;
            }
        }
        
        System.out.println(count);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int d = sc.nextInt(); d sc.nextInt() sc.nextInt sc double[][] array = new double[n][2]; array new double[n][2] n 2 int count = 0; count 0 for (int i = 0; i < array.length; i++) {
            array[i][0] = sc.nextDouble();
            array[i][1] = sc.nextDouble();
            
            double result = Math.sqrt(Math.pow(array[i][0], 2) + Math.pow(array[i][1], 2));
            if (result <= d) {
                count++;
            }
        } int i = 0; int i = 0; i 0 i < array.length i array.length array array.length i++ i++ i {
            array[i][0] = sc.nextDouble();
            array[i][1] = sc.nextDouble();
            
            double result = Math.sqrt(Math.pow(array[i][0], 2) + Math.pow(array[i][1], 2));
            if (result <= d) {
                count++;
            }
        } {
            array[i][0] = sc.nextDouble();
            array[i][1] = sc.nextDouble();
            
            double result = Math.sqrt(Math.pow(array[i][0], 2) + Math.pow(array[i][1], 2));
            if (result <= d) {
                count++;
            }
        } array[i][0] = sc.nextDouble() array[i][0] array[i] array i 0 sc.nextDouble() sc.nextDouble sc array[i][1] = sc.nextDouble() array[i][1] array[i] array i 1 sc.nextDouble() sc.nextDouble sc double result = Math.sqrt(Math.pow(array[i][0], 2) + Math.pow(array[i][1], 2)); result Math.sqrt(Math.pow(array[i][0], 2) + Math.pow(array[i][1], 2)) Math.sqrt Math Math.pow(array[i][0], 2) + Math.pow(array[i][1], 2) Math.pow(array[i][0], 2) Math.pow Math array[i][0] array[i] array i 0 2 Math.pow(array[i][1], 2) Math.pow Math array[i][1] array[i] array i 1 2 if (result <= d) {
                count++;
            } result <= d result d {
                count++;
            } count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args
import java.util.*;

class Main
{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        int n = sc.nextInt();
        int d = sc.nextInt();
        
        double[][] array = new double[n][2];
        int count = 0;
        for (int i = 0; i < array.length; i++) {
            array[i][0] = sc.nextDouble();
            array[i][1] = sc.nextDouble();
            
            double result = Math.sqrt(Math.pow(array[i][0], 2) + Math.pow(array[i][1], 2));
            if (result <= d) {
                count++;
            }
        }
        
        System.out.println(count);
    }
}