import java.util.Scanner;
import java.lang.Math;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int d = scan.nextInt();
        int counter = 0;
        int[] array = new int[n*2];
        for(int a=0; a<n*2; a=a+2){
            array[a] = scan.nextInt();
            array[a+1] = scan.nextInt();
            if(Math.sqrt(Math.pow(array[a],2)+Math.pow(array[a+1],2))<=d){
                counter++;
            }
        }
        System.out.println(counter);
        scan.close();
    }
} import java.util.Scanner; Scanner java.util import java.lang.Math; Math java.lang public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int d = scan.nextInt();
        int counter = 0;
        int[] array = new int[n*2];
        for(int a=0; a<n*2; a=a+2){
            array[a] = scan.nextInt();
            array[a+1] = scan.nextInt();
            if(Math.sqrt(Math.pow(array[a],2)+Math.pow(array[a+1],2))<=d){
                counter++;
            }
        }
        System.out.println(counter);
        scan.close();
    }
} Main public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int d = scan.nextInt();
        int counter = 0;
        int[] array = new int[n*2];
        for(int a=0; a<n*2; a=a+2){
            array[a] = scan.nextInt();
            array[a+1] = scan.nextInt();
            if(Math.sqrt(Math.pow(array[a],2)+Math.pow(array[a+1],2))<=d){
                counter++;
            }
        }
        System.out.println(counter);
        scan.close();
    } main {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int d = scan.nextInt();
        int counter = 0;
        int[] array = new int[n*2];
        for(int a=0; a<n*2; a=a+2){
            array[a] = scan.nextInt();
            array[a+1] = scan.nextInt();
            if(Math.sqrt(Math.pow(array[a],2)+Math.pow(array[a+1],2))<=d){
                counter++;
            }
        }
        System.out.println(counter);
        scan.close();
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int d = scan.nextInt(); d scan.nextInt() scan.nextInt scan int counter = 0; counter 0 int[] array = new int[n*2]; array new int[n*2] n*2 n 2 for(int a=0; a<n*2; a=a+2){
            array[a] = scan.nextInt();
            array[a+1] = scan.nextInt();
            if(Math.sqrt(Math.pow(array[a],2)+Math.pow(array[a+1],2))<=d){
                counter++;
            }
        } int a=0; int a=0; a 0 a<n*2 a n*2 n 2 a=a+2 a=a+2 a a+2 a 2 {
            array[a] = scan.nextInt();
            array[a+1] = scan.nextInt();
            if(Math.sqrt(Math.pow(array[a],2)+Math.pow(array[a+1],2))<=d){
                counter++;
            }
        } {
            array[a] = scan.nextInt();
            array[a+1] = scan.nextInt();
            if(Math.sqrt(Math.pow(array[a],2)+Math.pow(array[a+1],2))<=d){
                counter++;
            }
        } array[a] = scan.nextInt() array[a] array a scan.nextInt() scan.nextInt scan array[a+1] = scan.nextInt() array[a+1] array a+1 a 1 scan.nextInt() scan.nextInt scan if(Math.sqrt(Math.pow(array[a],2)+Math.pow(array[a+1],2))<=d){
                counter++;
            } Math.sqrt(Math.pow(array[a],2)+Math.pow(array[a+1],2))<=d Math.sqrt(Math.pow(array[a],2)+Math.pow(array[a+1],2)) Math.sqrt Math Math.pow(array[a],2)+Math.pow(array[a+1],2) Math.pow(array[a],2) Math.pow Math array[a] array a 2 Math.pow(array[a+1],2) Math.pow Math array[a+1] array a+1 a 1 2 d {
                counter++;
            } counter++ counter System.out.println(counter) System.out.println System.out System System.out counter scan.close() scan.close scan String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int d = scan.nextInt();
        int counter = 0;
        int[] array = new int[n*2];
        for(int a=0; a<n*2; a=a+2){
            array[a] = scan.nextInt();
            array[a+1] = scan.nextInt();
            if(Math.sqrt(Math.pow(array[a],2)+Math.pow(array[a+1],2))<=d){
                counter++;
            }
        }
        System.out.println(counter);
        scan.close();
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int d = scan.nextInt();
        int counter = 0;
        int[] array = new int[n*2];
        for(int a=0; a<n*2; a=a+2){
            array[a] = scan.nextInt();
            array[a+1] = scan.nextInt();
            if(Math.sqrt(Math.pow(array[a],2)+Math.pow(array[a+1],2))<=d){
                counter++;
            }
        }
        System.out.println(counter);
        scan.close();
    }
} Main
import java.util.Scanner;
import java.lang.Math;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int d = scan.nextInt();
        int counter = 0;
        int[] array = new int[n*2];
        for(int a=0; a<n*2; a=a+2){
            array[a] = scan.nextInt();
            array[a+1] = scan.nextInt();
            if(Math.sqrt(Math.pow(array[a],2)+Math.pow(array[a+1],2))<=d){
                counter++;
            }
        }
        System.out.println(counter);
        scan.close();
    }
}