///*Radhe Krishna*/
import javax.management.DynamicMBean;
import javax.print.DocFlavor;
import javax.print.attribute.HashAttributeSet;
import java.awt.*;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.math.BigInteger;
import java.net.CookieHandler;
import java.nio.file.attribute.FileAttribute;
import java.util.List;
import java.util.Scanner;
import java.util.StringTokenizer;
import java.util.*;
import java.util.Arrays;
import java.util.concurrent.Callable;



public class Main {
    static int mod = 1000000007;

    static class FastReader {
        BufferedReader br;
        StringTokenizer st;

        public FastReader() {
            br = new BufferedReader(new InputStreamReader(System.in));
        }

        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }

        double nextDouble() {
            return Double.parseDouble(next());
        }

        String nextLine() {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }
    }

    public static void main(String[] args) {
        FastReader sc = new FastReader();
        PrintWriter out = new PrintWriter(System.out);
//        Scanner sc=new Scanner(System.in);
                int n=sc.nextInt();
                        double     d=sc.nextDouble();

                int count=0;
                for(int j=0;j<n;j++){
                    int x=sc.nextInt();
                    int y=sc.nextInt();
                    x=Math.abs(x);
                    y=Math.abs(y);
                    double dis=(double)Math.sqrt((double)((long)x*x)+(double)((long)y*y));
                    if(dis<=(double)d){
                        count++;
                    }

                }
                System.out.println(count);

    }
}


 import javax.management.DynamicMBean; DynamicMBean javax.management import javax.print.DocFlavor; DocFlavor javax.print import javax.print.attribute.HashAttributeSet; HashAttributeSet javax.print.attribute import java.awt.*; awt.* java import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.PrintWriter; PrintWriter java.io import java.math.BigInteger; BigInteger java.math import java.net.CookieHandler; CookieHandler java.net import java.nio.file.attribute.FileAttribute; FileAttribute java.nio.file.attribute import java.util.List; List java.util import java.util.Scanner; Scanner java.util import java.util.StringTokenizer; StringTokenizer java.util import java.util.*; util.* java import java.util.Arrays; Arrays java.util import java.util.concurrent.Callable; Callable java.util.concurrent public class Main {
    static int mod = 1000000007;

    static class FastReader {
        BufferedReader br;
        StringTokenizer st;

        public FastReader() {
            br = new BufferedReader(new InputStreamReader(System.in));
        }

        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }

        double nextDouble() {
            return Double.parseDouble(next());
        }

        String nextLine() {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }
    }

    public static void main(String[] args) {
        FastReader sc = new FastReader();
        PrintWriter out = new PrintWriter(System.out);
//        Scanner sc=new Scanner(System.in);
                int n=sc.nextInt();
                        double     d=sc.nextDouble();

                int count=0;
                for(int j=0;j<n;j++){
                    int x=sc.nextInt();
                    int y=sc.nextInt();
                    x=Math.abs(x);
                    y=Math.abs(y);
                    double dis=(double)Math.sqrt((double)((long)x*x)+(double)((long)y*y));
                    if(dis<=(double)d){
                        count++;
                    }

                }
                System.out.println(count);

    }
} Main static int mod = 1000000007; mod 1000000007 public static void main(String[] args) {
        FastReader sc = new FastReader();
        PrintWriter out = new PrintWriter(System.out);
//        Scanner sc=new Scanner(System.in);
                int n=sc.nextInt();
                        double     d=sc.nextDouble();

                int count=0;
                for(int j=0;j<n;j++){
                    int x=sc.nextInt();
                    int y=sc.nextInt();
                    x=Math.abs(x);
                    y=Math.abs(y);
                    double dis=(double)Math.sqrt((double)((long)x*x)+(double)((long)y*y));
                    if(dis<=(double)d){
                        count++;
                    }

                }
                System.out.println(count);

    } main {
        FastReader sc = new FastReader();
        PrintWriter out = new PrintWriter(System.out);
//        Scanner sc=new Scanner(System.in);
                int n=sc.nextInt();
                        double     d=sc.nextDouble();

                int count=0;
                for(int j=0;j<n;j++){
                    int x=sc.nextInt();
                    int y=sc.nextInt();
                    x=Math.abs(x);
                    y=Math.abs(y);
                    double dis=(double)Math.sqrt((double)((long)x*x)+(double)((long)y*y));
                    if(dis<=(double)d){
                        count++;
                    }

                }
                System.out.println(count);

    } FastReader sc = new FastReader(); sc new FastReader() PrintWriter out = new PrintWriter(System.out); out new PrintWriter(System.out) int n=sc.nextInt(); n sc.nextInt() sc.nextInt sc double     d=sc.nextDouble(); d sc.nextDouble() sc.nextDouble sc int count=0; count 0 for(int j=0;j<n;j++){
                    int x=sc.nextInt();
                    int y=sc.nextInt();
                    x=Math.abs(x);
                    y=Math.abs(y);
                    double dis=(double)Math.sqrt((double)((long)x*x)+(double)((long)y*y));
                    if(dis<=(double)d){
                        count++;
                    }

                } int j=0; int j=0; j 0 j<n j n j++ j++ j {
                    int x=sc.nextInt();
                    int y=sc.nextInt();
                    x=Math.abs(x);
                    y=Math.abs(y);
                    double dis=(double)Math.sqrt((double)((long)x*x)+(double)((long)y*y));
                    if(dis<=(double)d){
                        count++;
                    }

                } {
                    int x=sc.nextInt();
                    int y=sc.nextInt();
                    x=Math.abs(x);
                    y=Math.abs(y);
                    double dis=(double)Math.sqrt((double)((long)x*x)+(double)((long)y*y));
                    if(dis<=(double)d){
                        count++;
                    }

                } int x=sc.nextInt(); x sc.nextInt() sc.nextInt sc int y=sc.nextInt(); y sc.nextInt() sc.nextInt sc x=Math.abs(x) x Math.abs(x) Math.abs Math x y=Math.abs(y) y Math.abs(y) Math.abs Math y double dis=(double)Math.sqrt((double)((long)x*x)+(double)((long)y*y)); dis (double)Math.sqrt((double)((long)x*x)+(double)((long)y*y)) Math.sqrt Math (double)((long)x*x)+(double)((long)y*y) (double)((long)x*x) (long)x x (double)((long)y*y) (long)y y if(dis<=(double)d){
                        count++;
                    } dis<=(double)d dis (double)d {
                        count++;
                    } count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args static class FastReader {
        BufferedReader br;
        StringTokenizer st;

        public FastReader() {
            br = new BufferedReader(new InputStreamReader(System.in));
        }

        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }

        double nextDouble() {
            return Double.parseDouble(next());
        }

        String nextLine() {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }
    } FastReader BufferedReader br; br StringTokenizer st; st public FastReader() {
            br = new BufferedReader(new InputStreamReader(System.in));
        } FastReader {
            br = new BufferedReader(new InputStreamReader(System.in));
        } br = new BufferedReader(new InputStreamReader(System.in)) br new BufferedReader(new InputStreamReader(System.in)) String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        } next {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        } while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            } st == null || !st.hasMoreElements() st == null st null !st.hasMoreElements() st.hasMoreElements() st.hasMoreElements st {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            } try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                } catch (IOException e) {
                    e.printStackTrace();
                } IOException e {
                    e.printStackTrace();
                } e.printStackTrace() e.printStackTrace e {
                    st = new StringTokenizer(br.readLine());
                } st = new StringTokenizer(br.readLine()) st new StringTokenizer(br.readLine()) return st.nextToken(); st.nextToken() st.nextToken st int nextInt() {
            return Integer.parseInt(next());
        } nextInt {
            return Integer.parseInt(next());
        } return Integer.parseInt(next()); Integer.parseInt(next()) Integer.parseInt Integer next() next long nextLong() {
            return Long.parseLong(next());
        } nextLong {
            return Long.parseLong(next());
        } return Long.parseLong(next()); Long.parseLong(next()) Long.parseLong Long next() next double nextDouble() {
            return Double.parseDouble(next());
        } nextDouble {
            return Double.parseDouble(next());
        } return Double.parseDouble(next()); Double.parseDouble(next()) Double.parseDouble Double next() next String nextLine() {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        } nextLine {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        } String str = ""; str "" try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            } catch (IOException e) {
                e.printStackTrace();
            } IOException e {
                e.printStackTrace();
            } e.printStackTrace() e.printStackTrace e {
                str = br.readLine();
            } str = br.readLine() str br.readLine() br.readLine br return str; str public class Main {
    static int mod = 1000000007;

    static class FastReader {
        BufferedReader br;
        StringTokenizer st;

        public FastReader() {
            br = new BufferedReader(new InputStreamReader(System.in));
        }

        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }

        double nextDouble() {
            return Double.parseDouble(next());
        }

        String nextLine() {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }
    }

    public static void main(String[] args) {
        FastReader sc = new FastReader();
        PrintWriter out = new PrintWriter(System.out);
//        Scanner sc=new Scanner(System.in);
                int n=sc.nextInt();
                        double     d=sc.nextDouble();

                int count=0;
                for(int j=0;j<n;j++){
                    int x=sc.nextInt();
                    int y=sc.nextInt();
                    x=Math.abs(x);
                    y=Math.abs(y);
                    double dis=(double)Math.sqrt((double)((long)x*x)+(double)((long)y*y));
                    if(dis<=(double)d){
                        count++;
                    }

                }
                System.out.println(count);

    }
} public class Main {
    static int mod = 1000000007;

    static class FastReader {
        BufferedReader br;
        StringTokenizer st;

        public FastReader() {
            br = new BufferedReader(new InputStreamReader(System.in));
        }

        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }

        double nextDouble() {
            return Double.parseDouble(next());
        }

        String nextLine() {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }
    }

    public static void main(String[] args) {
        FastReader sc = new FastReader();
        PrintWriter out = new PrintWriter(System.out);
//        Scanner sc=new Scanner(System.in);
                int n=sc.nextInt();
                        double     d=sc.nextDouble();

                int count=0;
                for(int j=0;j<n;j++){
                    int x=sc.nextInt();
                    int y=sc.nextInt();
                    x=Math.abs(x);
                    y=Math.abs(y);
                    double dis=(double)Math.sqrt((double)((long)x*x)+(double)((long)y*y));
                    if(dis<=(double)d){
                        count++;
                    }

                }
                System.out.println(count);

    }
} Main
///*Radhe Krishna*/
import javax.management.DynamicMBean;
import javax.print.DocFlavor;
import javax.print.attribute.HashAttributeSet;
import java.awt.*;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.math.BigInteger;
import java.net.CookieHandler;
import java.nio.file.attribute.FileAttribute;
import java.util.List;
import java.util.Scanner;
import java.util.StringTokenizer;
import java.util.*;
import java.util.Arrays;
import java.util.concurrent.Callable;



public class Main {
    static int mod = 1000000007;

    static class FastReader {
        BufferedReader br;
        StringTokenizer st;

        public FastReader() {
            br = new BufferedReader(new InputStreamReader(System.in));
        }

        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }

        double nextDouble() {
            return Double.parseDouble(next());
        }

        String nextLine() {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }
    }

    public static void main(String[] args) {
        FastReader sc = new FastReader();
        PrintWriter out = new PrintWriter(System.out);
//        Scanner sc=new Scanner(System.in);
                int n=sc.nextInt();
                        double     d=sc.nextDouble();

                int count=0;
                for(int j=0;j<n;j++){
                    int x=sc.nextInt();
                    int y=sc.nextInt();
                    x=Math.abs(x);
                    y=Math.abs(y);
                    double dis=(double)Math.sqrt((double)((long)x*x)+(double)((long)y*y));
                    if(dis<=(double)d){
                        count++;
                    }

                }
                System.out.println(count);

    }
}



