import java.util.*;
import java.io.*;
public class Main extends PrintWriter {
    Main()
    {
        super(System.out);
    }
    public static void main(String args[]) {
      Main o=new Main();
      o.main();
      o.flush();
      o.close();
    }
    void main()
    {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int d=sc.nextInt();
        int c=0;
        while(n-->0)
        {
            int x=sc.nextInt();
            int y=sc.nextInt();
            double sp=Math.sqrt(Math.pow(x,2)+Math.pow(y,2));
            if(sp<=d)
            c++;
        }
        println(c);
        
    }
} import java.util.*; util.* java import java.io.*; io.* java public class Main extends PrintWriter {
    Main()
    {
        super(System.out);
    }
    public static void main(String args[]) {
      Main o=new Main();
      o.main();
      o.flush();
      o.close();
    }
    void main()
    {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int d=sc.nextInt();
        int c=0;
        while(n-->0)
        {
            int x=sc.nextInt();
            int y=sc.nextInt();
            double sp=Math.sqrt(Math.pow(x,2)+Math.pow(y,2));
            if(sp<=d)
            c++;
        }
        println(c);
        
    }
} Main Main()
    {
        super(System.out);
    } Main {
        super(System.out);
    } super(System.out) super System.out System System.out public static void main(String args[]) {
      Main o=new Main();
      o.main();
      o.flush();
      o.close();
    } main {
      Main o=new Main();
      o.main();
      o.flush();
      o.close();
    } Main o=new Main(); o new Main() o.main() o.main o o.flush() o.flush o o.close() o.close o String args[] args void main()
    {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int d=sc.nextInt();
        int c=0;
        while(n-->0)
        {
            int x=sc.nextInt();
            int y=sc.nextInt();
            double sp=Math.sqrt(Math.pow(x,2)+Math.pow(y,2));
            if(sp<=d)
            c++;
        }
        println(c);
        
    } main {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int d=sc.nextInt();
        int c=0;
        while(n-->0)
        {
            int x=sc.nextInt();
            int y=sc.nextInt();
            double sp=Math.sqrt(Math.pow(x,2)+Math.pow(y,2));
            if(sp<=d)
            c++;
        }
        println(c);
        
    } 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 int c=0; c 0 while(n-->0)
        {
            int x=sc.nextInt();
            int y=sc.nextInt();
            double sp=Math.sqrt(Math.pow(x,2)+Math.pow(y,2));
            if(sp<=d)
            c++;
        } n-->0 n-- n 0 {
            int x=sc.nextInt();
            int y=sc.nextInt();
            double sp=Math.sqrt(Math.pow(x,2)+Math.pow(y,2));
            if(sp<=d)
            c++;
        } int x=sc.nextInt(); x sc.nextInt() sc.nextInt sc int y=sc.nextInt(); y sc.nextInt() sc.nextInt sc double sp=Math.sqrt(Math.pow(x,2)+Math.pow(y,2)); sp Math.sqrt(Math.pow(x,2)+Math.pow(y,2)) Math.sqrt Math Math.pow(x,2)+Math.pow(y,2) Math.pow(x,2) Math.pow Math x 2 Math.pow(y,2) Math.pow Math y 2 if(sp<=d)
            c++; sp<=d sp d c++ c println(c) println c PrintWriter public class Main extends PrintWriter {
    Main()
    {
        super(System.out);
    }
    public static void main(String args[]) {
      Main o=new Main();
      o.main();
      o.flush();
      o.close();
    }
    void main()
    {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int d=sc.nextInt();
        int c=0;
        while(n-->0)
        {
            int x=sc.nextInt();
            int y=sc.nextInt();
            double sp=Math.sqrt(Math.pow(x,2)+Math.pow(y,2));
            if(sp<=d)
            c++;
        }
        println(c);
        
    }
} public class Main extends PrintWriter {
    Main()
    {
        super(System.out);
    }
    public static void main(String args[]) {
      Main o=new Main();
      o.main();
      o.flush();
      o.close();
    }
    void main()
    {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int d=sc.nextInt();
        int c=0;
        while(n-->0)
        {
            int x=sc.nextInt();
            int y=sc.nextInt();
            double sp=Math.sqrt(Math.pow(x,2)+Math.pow(y,2));
            if(sp<=d)
            c++;
        }
        println(c);
        
    }
} Main
import java.util.*;
import java.io.*;
public class Main extends PrintWriter {
    Main()
    {
        super(System.out);
    }
    public static void main(String args[]) {
      Main o=new Main();
      o.main();
      o.flush();
      o.close();
    }
    void main()
    {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int d=sc.nextInt();
        int c=0;
        while(n-->0)
        {
            int x=sc.nextInt();
            int y=sc.nextInt();
            double sp=Math.sqrt(Math.pow(x,2)+Math.pow(y,2));
            if(sp<=d)
            c++;
        }
        println(c);
        
    }
}