import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.LinkedHashSet;
import java.util.Random;

public class Main {


    public static void main(String[] args) throws IOException {
        BufferedReader read = new BufferedReader(new InputStreamReader(System.in));
//
        String s=read.readLine();
        String ss[]=s.split(" ");
        int n=Integer.parseInt(ss[0]);
        int d=Integer.parseInt(ss[1]);
        int c=0;
        for(int i=0;i<n;i++){
            String co=read.readLine();
            String ss2[]=co.split(" ");
            int x=Integer.parseInt(ss2[0]);
            int y=Integer.parseInt(ss2[1]);
            double dist=Math.sqrt(Math.pow(x,2)+Math.pow(y,2));
            if(dist<=d){
                c++;
            }
        }
        System.out.println(c);

    }

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.LinkedHashSet; LinkedHashSet java.util import java.util.Random; Random java.util public class Main {


    public static void main(String[] args) throws IOException {
        BufferedReader read = new BufferedReader(new InputStreamReader(System.in));
//
        String s=read.readLine();
        String ss[]=s.split(" ");
        int n=Integer.parseInt(ss[0]);
        int d=Integer.parseInt(ss[1]);
        int c=0;
        for(int i=0;i<n;i++){
            String co=read.readLine();
            String ss2[]=co.split(" ");
            int x=Integer.parseInt(ss2[0]);
            int y=Integer.parseInt(ss2[1]);
            double dist=Math.sqrt(Math.pow(x,2)+Math.pow(y,2));
            if(dist<=d){
                c++;
            }
        }
        System.out.println(c);

    }

} Main public static void main(String[] args) throws IOException {
        BufferedReader read = new BufferedReader(new InputStreamReader(System.in));
//
        String s=read.readLine();
        String ss[]=s.split(" ");
        int n=Integer.parseInt(ss[0]);
        int d=Integer.parseInt(ss[1]);
        int c=0;
        for(int i=0;i<n;i++){
            String co=read.readLine();
            String ss2[]=co.split(" ");
            int x=Integer.parseInt(ss2[0]);
            int y=Integer.parseInt(ss2[1]);
            double dist=Math.sqrt(Math.pow(x,2)+Math.pow(y,2));
            if(dist<=d){
                c++;
            }
        }
        System.out.println(c);

    } main {
        BufferedReader read = new BufferedReader(new InputStreamReader(System.in));
//
        String s=read.readLine();
        String ss[]=s.split(" ");
        int n=Integer.parseInt(ss[0]);
        int d=Integer.parseInt(ss[1]);
        int c=0;
        for(int i=0;i<n;i++){
            String co=read.readLine();
            String ss2[]=co.split(" ");
            int x=Integer.parseInt(ss2[0]);
            int y=Integer.parseInt(ss2[1]);
            double dist=Math.sqrt(Math.pow(x,2)+Math.pow(y,2));
            if(dist<=d){
                c++;
            }
        }
        System.out.println(c);

    } BufferedReader read = new BufferedReader(new InputStreamReader(System.in)); read new BufferedReader(new InputStreamReader(System.in)) String s=read.readLine(); s read.readLine() read.readLine read String ss[]=s.split(" "); ss s.split(" ") s.split s " " int n=Integer.parseInt(ss[0]); n Integer.parseInt(ss[0]) Integer.parseInt Integer ss[0] ss 0 int d=Integer.parseInt(ss[1]); d Integer.parseInt(ss[1]) Integer.parseInt Integer ss[1] ss 1 int c=0; c 0 for(int i=0;i<n;i++){
            String co=read.readLine();
            String ss2[]=co.split(" ");
            int x=Integer.parseInt(ss2[0]);
            int y=Integer.parseInt(ss2[1]);
            double dist=Math.sqrt(Math.pow(x,2)+Math.pow(y,2));
            if(dist<=d){
                c++;
            }
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            String co=read.readLine();
            String ss2[]=co.split(" ");
            int x=Integer.parseInt(ss2[0]);
            int y=Integer.parseInt(ss2[1]);
            double dist=Math.sqrt(Math.pow(x,2)+Math.pow(y,2));
            if(dist<=d){
                c++;
            }
        } {
            String co=read.readLine();
            String ss2[]=co.split(" ");
            int x=Integer.parseInt(ss2[0]);
            int y=Integer.parseInt(ss2[1]);
            double dist=Math.sqrt(Math.pow(x,2)+Math.pow(y,2));
            if(dist<=d){
                c++;
            }
        } String co=read.readLine(); co read.readLine() read.readLine read String ss2[]=co.split(" "); ss2 co.split(" ") co.split co " " int x=Integer.parseInt(ss2[0]); x Integer.parseInt(ss2[0]) Integer.parseInt Integer ss2[0] ss2 0 int y=Integer.parseInt(ss2[1]); y Integer.parseInt(ss2[1]) Integer.parseInt Integer ss2[1] ss2 1 double dist=Math.sqrt(Math.pow(x,2)+Math.pow(y,2)); dist 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(dist<=d){
                c++;
            } dist<=d dist d {
                c++;
            } c++ c System.out.println(c) System.out.println System.out System System.out c String[] args args public class Main {


    public static void main(String[] args) throws IOException {
        BufferedReader read = new BufferedReader(new InputStreamReader(System.in));
//
        String s=read.readLine();
        String ss[]=s.split(" ");
        int n=Integer.parseInt(ss[0]);
        int d=Integer.parseInt(ss[1]);
        int c=0;
        for(int i=0;i<n;i++){
            String co=read.readLine();
            String ss2[]=co.split(" ");
            int x=Integer.parseInt(ss2[0]);
            int y=Integer.parseInt(ss2[1]);
            double dist=Math.sqrt(Math.pow(x,2)+Math.pow(y,2));
            if(dist<=d){
                c++;
            }
        }
        System.out.println(c);

    }

} public class Main {


    public static void main(String[] args) throws IOException {
        BufferedReader read = new BufferedReader(new InputStreamReader(System.in));
//
        String s=read.readLine();
        String ss[]=s.split(" ");
        int n=Integer.parseInt(ss[0]);
        int d=Integer.parseInt(ss[1]);
        int c=0;
        for(int i=0;i<n;i++){
            String co=read.readLine();
            String ss2[]=co.split(" ");
            int x=Integer.parseInt(ss2[0]);
            int y=Integer.parseInt(ss2[1]);
            double dist=Math.sqrt(Math.pow(x,2)+Math.pow(y,2));
            if(dist<=d){
                c++;
            }
        }
        System.out.println(c);

    }

} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.LinkedHashSet;
import java.util.Random;

public class Main {


    public static void main(String[] args) throws IOException {
        BufferedReader read = new BufferedReader(new InputStreamReader(System.in));
//
        String s=read.readLine();
        String ss[]=s.split(" ");
        int n=Integer.parseInt(ss[0]);
        int d=Integer.parseInt(ss[1]);
        int c=0;
        for(int i=0;i<n;i++){
            String co=read.readLine();
            String ss2[]=co.split(" ");
            int x=Integer.parseInt(ss2[0]);
            int y=Integer.parseInt(ss2[1]);
            double dist=Math.sqrt(Math.pow(x,2)+Math.pow(y,2));
            if(dist<=d){
                c++;
            }
        }
        System.out.println(c);

    }

}
