import java.util.*;
import java.lang.*;

public class Main{
    public static void main(String[]args){
	Scanner sc = new Scanner(System.in);
    int N= sc.nextInt();
    long D=(long)Math.pow(sc.nextInt(),2);
    long d[]= new long[N];
    int ans =0;
    for(int i=0; i<N; i++){
        d[i]= (long)Math.pow(sc.nextInt(),2)+ (long)Math.pow(sc.nextInt(),2);
        if(D>=d[i]){
            ans++;
        }
    }
System.out.println(ans);
    }
} import java.util.*; util.* java import java.lang.*; lang.* java public class Main{
    public static void main(String[]args){
	Scanner sc = new Scanner(System.in);
    int N= sc.nextInt();
    long D=(long)Math.pow(sc.nextInt(),2);
    long d[]= new long[N];
    int ans =0;
    for(int i=0; i<N; i++){
        d[i]= (long)Math.pow(sc.nextInt(),2)+ (long)Math.pow(sc.nextInt(),2);
        if(D>=d[i]){
            ans++;
        }
    }
System.out.println(ans);
    }
} Main public static void main(String[]args){
	Scanner sc = new Scanner(System.in);
    int N= sc.nextInt();
    long D=(long)Math.pow(sc.nextInt(),2);
    long d[]= new long[N];
    int ans =0;
    for(int i=0; i<N; i++){
        d[i]= (long)Math.pow(sc.nextInt(),2)+ (long)Math.pow(sc.nextInt(),2);
        if(D>=d[i]){
            ans++;
        }
    }
System.out.println(ans);
    } main {
	Scanner sc = new Scanner(System.in);
    int N= sc.nextInt();
    long D=(long)Math.pow(sc.nextInt(),2);
    long d[]= new long[N];
    int ans =0;
    for(int i=0; i<N; i++){
        d[i]= (long)Math.pow(sc.nextInt(),2)+ (long)Math.pow(sc.nextInt(),2);
        if(D>=d[i]){
            ans++;
        }
    }
System.out.println(ans);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N= sc.nextInt(); N sc.nextInt() sc.nextInt sc long D=(long)Math.pow(sc.nextInt(),2); D (long)Math.pow(sc.nextInt(),2) Math.pow Math sc.nextInt() sc.nextInt sc 2 long d[]= new long[N]; d new long[N] N int ans =0; ans 0 for(int i=0; i<N; i++){
        d[i]= (long)Math.pow(sc.nextInt(),2)+ (long)Math.pow(sc.nextInt(),2);
        if(D>=d[i]){
            ans++;
        }
    } int i=0; int i=0; i 0 i<N i N i++ i++ i {
        d[i]= (long)Math.pow(sc.nextInt(),2)+ (long)Math.pow(sc.nextInt(),2);
        if(D>=d[i]){
            ans++;
        }
    } {
        d[i]= (long)Math.pow(sc.nextInt(),2)+ (long)Math.pow(sc.nextInt(),2);
        if(D>=d[i]){
            ans++;
        }
    } d[i]= (long)Math.pow(sc.nextInt(),2)+ (long)Math.pow(sc.nextInt(),2) d[i] d i (long)Math.pow(sc.nextInt(),2)+ (long)Math.pow(sc.nextInt(),2) (long)Math.pow(sc.nextInt(),2) Math.pow Math sc.nextInt() sc.nextInt sc 2 (long)Math.pow(sc.nextInt(),2) Math.pow Math sc.nextInt() sc.nextInt sc 2 if(D>=d[i]){
            ans++;
        } D>=d[i] D d[i] d i {
            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 N= sc.nextInt();
    long D=(long)Math.pow(sc.nextInt(),2);
    long d[]= new long[N];
    int ans =0;
    for(int i=0; i<N; i++){
        d[i]= (long)Math.pow(sc.nextInt(),2)+ (long)Math.pow(sc.nextInt(),2);
        if(D>=d[i]){
            ans++;
        }
    }
System.out.println(ans);
    }
} public class Main{
    public static void main(String[]args){
	Scanner sc = new Scanner(System.in);
    int N= sc.nextInt();
    long D=(long)Math.pow(sc.nextInt(),2);
    long d[]= new long[N];
    int ans =0;
    for(int i=0; i<N; i++){
        d[i]= (long)Math.pow(sc.nextInt(),2)+ (long)Math.pow(sc.nextInt(),2);
        if(D>=d[i]){
            ans++;
        }
    }
System.out.println(ans);
    }
} Main
import java.util.*;
import java.lang.*;

public class Main{
    public static void main(String[]args){
	Scanner sc = new Scanner(System.in);
    int N= sc.nextInt();
    long D=(long)Math.pow(sc.nextInt(),2);
    long d[]= new long[N];
    int ans =0;
    for(int i=0; i<N; i++){
        d[i]= (long)Math.pow(sc.nextInt(),2)+ (long)Math.pow(sc.nextInt(),2);
        if(D>=d[i]){
            ans++;
        }
    }
System.out.println(ans);
    }
}
