import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
       Scanner scanner =new Scanner(System.in);
       int N=scanner.nextInt();
       int D=scanner.nextInt();
       double A,K=0;
        long X,Y,XX,YY;
       int count=0;
       for(int i=0;i<N;i++){
            X=scanner.nextLong();
            Y=scanner.nextLong();
             XX=X*X;
             YY=Y*Y;
            A=Math.sqrt(XX+YY);
           if(A<=D){
               count++;
           }
       }
       System.out.println(count);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
       Scanner scanner =new Scanner(System.in);
       int N=scanner.nextInt();
       int D=scanner.nextInt();
       double A,K=0;
        long X,Y,XX,YY;
       int count=0;
       for(int i=0;i<N;i++){
            X=scanner.nextLong();
            Y=scanner.nextLong();
             XX=X*X;
             YY=Y*Y;
            A=Math.sqrt(XX+YY);
           if(A<=D){
               count++;
           }
       }
       System.out.println(count);
    }
} Main public static void main(String[] args) throws Exception {
       Scanner scanner =new Scanner(System.in);
       int N=scanner.nextInt();
       int D=scanner.nextInt();
       double A,K=0;
        long X,Y,XX,YY;
       int count=0;
       for(int i=0;i<N;i++){
            X=scanner.nextLong();
            Y=scanner.nextLong();
             XX=X*X;
             YY=Y*Y;
            A=Math.sqrt(XX+YY);
           if(A<=D){
               count++;
           }
       }
       System.out.println(count);
    } main {
       Scanner scanner =new Scanner(System.in);
       int N=scanner.nextInt();
       int D=scanner.nextInt();
       double A,K=0;
        long X,Y,XX,YY;
       int count=0;
       for(int i=0;i<N;i++){
            X=scanner.nextLong();
            Y=scanner.nextLong();
             XX=X*X;
             YY=Y*Y;
            A=Math.sqrt(XX+YY);
           if(A<=D){
               count++;
           }
       }
       System.out.println(count);
    } Scanner scanner =new Scanner(System.in); scanner new Scanner(System.in) int N=scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner int D=scanner.nextInt(); D scanner.nextInt() scanner.nextInt scanner double A A K=0; K 0 long X X Y Y XX XX YY; YY int count=0; count 0 for(int i=0;i<N;i++){
            X=scanner.nextLong();
            Y=scanner.nextLong();
             XX=X*X;
             YY=Y*Y;
            A=Math.sqrt(XX+YY);
           if(A<=D){
               count++;
           }
       } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            X=scanner.nextLong();
            Y=scanner.nextLong();
             XX=X*X;
             YY=Y*Y;
            A=Math.sqrt(XX+YY);
           if(A<=D){
               count++;
           }
       } {
            X=scanner.nextLong();
            Y=scanner.nextLong();
             XX=X*X;
             YY=Y*Y;
            A=Math.sqrt(XX+YY);
           if(A<=D){
               count++;
           }
       } X=scanner.nextLong() X scanner.nextLong() scanner.nextLong scanner Y=scanner.nextLong() Y scanner.nextLong() scanner.nextLong scanner XX=X*X XX X*X X X YY=Y*Y YY Y*Y Y Y A=Math.sqrt(XX+YY) A Math.sqrt(XX+YY) Math.sqrt Math XX+YY XX YY if(A<=D){
               count++;
           } A<=D A D {
               count++;
           } 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) throws Exception {
       Scanner scanner =new Scanner(System.in);
       int N=scanner.nextInt();
       int D=scanner.nextInt();
       double A,K=0;
        long X,Y,XX,YY;
       int count=0;
       for(int i=0;i<N;i++){
            X=scanner.nextLong();
            Y=scanner.nextLong();
             XX=X*X;
             YY=Y*Y;
            A=Math.sqrt(XX+YY);
           if(A<=D){
               count++;
           }
       }
       System.out.println(count);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
       Scanner scanner =new Scanner(System.in);
       int N=scanner.nextInt();
       int D=scanner.nextInt();
       double A,K=0;
        long X,Y,XX,YY;
       int count=0;
       for(int i=0;i<N;i++){
            X=scanner.nextLong();
            Y=scanner.nextLong();
             XX=X*X;
             YY=Y*Y;
            A=Math.sqrt(XX+YY);
           if(A<=D){
               count++;
           }
       }
       System.out.println(count);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
       Scanner scanner =new Scanner(System.in);
       int N=scanner.nextInt();
       int D=scanner.nextInt();
       double A,K=0;
        long X,Y,XX,YY;
       int count=0;
       for(int i=0;i<N;i++){
            X=scanner.nextLong();
            Y=scanner.nextLong();
             XX=X*X;
             YY=Y*Y;
            A=Math.sqrt(XX+YY);
           if(A<=D){
               count++;
           }
       }
       System.out.println(count);
    }
}
