import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;
public class Main {
    static FastScanner sc = new FastScanner();
    public static void main(String[] args) {
       int n=sc.nextInt();
      int d=sc.nextInt();
        int count=0;
      while (n-->=1){
          long x=sc.nextLong();
          long y=sc.nextLong();
//          Math.abs(x);
//          Math.abs(y);
          double dist=Math.sqrt((x*x)+(y*y));
//          System.out.println(dist);

          if (dist<=d){
              count++;
          }
      }
        System.out.println(count);


    }

        static void sortint(int[] a) {
        ArrayList<Integer> l=new ArrayList<>();
        for (int i:a) l.add(i);
        Collections.sort(l);
        for (int i=0; i<a.length; i++) a[i]=l.get(i);
    }
    static void sort(long[] a) {
        ArrayList<Integer> l = new ArrayList<>();
        for (long i : a) l.add((int) i);
        Collections.sort(l);
        for (int i = 0; i < a.length; i++) a[i] = l.get(i);
    }

    static class FastScanner {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st = new StringTokenizer("");

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

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

        int[] readArray(int n) {
            int[] a = new int[n];
            for (int i = 0; i < n; i++) a[i] = nextInt();
            return a;
        }

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


 import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.*; util.* java public class Main {
    static FastScanner sc = new FastScanner();
    public static void main(String[] args) {
       int n=sc.nextInt();
      int d=sc.nextInt();
        int count=0;
      while (n-->=1){
          long x=sc.nextLong();
          long y=sc.nextLong();
//          Math.abs(x);
//          Math.abs(y);
          double dist=Math.sqrt((x*x)+(y*y));
//          System.out.println(dist);

          if (dist<=d){
              count++;
          }
      }
        System.out.println(count);


    }

        static void sortint(int[] a) {
        ArrayList<Integer> l=new ArrayList<>();
        for (int i:a) l.add(i);
        Collections.sort(l);
        for (int i=0; i<a.length; i++) a[i]=l.get(i);
    }
    static void sort(long[] a) {
        ArrayList<Integer> l = new ArrayList<>();
        for (long i : a) l.add((int) i);
        Collections.sort(l);
        for (int i = 0; i < a.length; i++) a[i] = l.get(i);
    }

    static class FastScanner {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st = new StringTokenizer("");

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

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

        int[] readArray(int n) {
            int[] a = new int[n];
            for (int i = 0; i < n; i++) a[i] = nextInt();
            return a;
        }

        long nextLong() {
            return Long.parseLong(next());
        }
    }
} Main static FastScanner sc = new FastScanner(); sc new FastScanner() public static void main(String[] args) {
       int n=sc.nextInt();
      int d=sc.nextInt();
        int count=0;
      while (n-->=1){
          long x=sc.nextLong();
          long y=sc.nextLong();
//          Math.abs(x);
//          Math.abs(y);
          double dist=Math.sqrt((x*x)+(y*y));
//          System.out.println(dist);

          if (dist<=d){
              count++;
          }
      }
        System.out.println(count);


    } main {
       int n=sc.nextInt();
      int d=sc.nextInt();
        int count=0;
      while (n-->=1){
          long x=sc.nextLong();
          long y=sc.nextLong();
//          Math.abs(x);
//          Math.abs(y);
          double dist=Math.sqrt((x*x)+(y*y));
//          System.out.println(dist);

          if (dist<=d){
              count++;
          }
      }
        System.out.println(count);


    } int n=sc.nextInt(); n sc.nextInt() sc.nextInt sc int d=sc.nextInt(); d sc.nextInt() sc.nextInt sc int count=0; count 0 while (n-->=1){
          long x=sc.nextLong();
          long y=sc.nextLong();
//          Math.abs(x);
//          Math.abs(y);
          double dist=Math.sqrt((x*x)+(y*y));
//          System.out.println(dist);

          if (dist<=d){
              count++;
          }
      } n-->=1 n-- n 1 {
          long x=sc.nextLong();
          long y=sc.nextLong();
//          Math.abs(x);
//          Math.abs(y);
          double dist=Math.sqrt((x*x)+(y*y));
//          System.out.println(dist);

          if (dist<=d){
              count++;
          }
      } long x=sc.nextLong(); x sc.nextLong() sc.nextLong sc long y=sc.nextLong(); y sc.nextLong() sc.nextLong sc double dist=Math.sqrt((x*x)+(y*y)); dist Math.sqrt((x*x)+(y*y)) Math.sqrt Math (x*x)+(y*y) (x*x) x x (y*y) y y if (dist<=d){
              count++;
          } dist<=d dist d {
              count++;
          } count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args static void sortint(int[] a) {
        ArrayList<Integer> l=new ArrayList<>();
        for (int i:a) l.add(i);
        Collections.sort(l);
        for (int i=0; i<a.length; i++) a[i]=l.get(i);
    } sortint {
        ArrayList<Integer> l=new ArrayList<>();
        for (int i:a) l.add(i);
        Collections.sort(l);
        for (int i=0; i<a.length; i++) a[i]=l.get(i);
    } ArrayList<Integer> l=new ArrayList<>(); l new ArrayList<>() for (int i:a) l.add(i); int i a l.add(i); l.add(i) l.add l i Collections.sort(l) Collections.sort Collections l for (int i=0; i<a.length; i++) a[i]=l.get(i); int i=0; int i=0; i 0 i<a.length i a.length a a.length i++ i++ i a[i]=l.get(i); a[i]=l.get(i) a[i] a i l.get(i) l.get l i int[] a a static void sort(long[] a) {
        ArrayList<Integer> l = new ArrayList<>();
        for (long i : a) l.add((int) i);
        Collections.sort(l);
        for (int i = 0; i < a.length; i++) a[i] = l.get(i);
    } sort {
        ArrayList<Integer> l = new ArrayList<>();
        for (long i : a) l.add((int) i);
        Collections.sort(l);
        for (int i = 0; i < a.length; i++) a[i] = l.get(i);
    } ArrayList<Integer> l = new ArrayList<>(); l new ArrayList<>() for (long i : a) l.add((int) i); long i a l.add((int) i); l.add((int) i) l.add l (int) i Collections.sort(l) Collections.sort Collections l for (int i = 0; i < a.length; i++) a[i] = l.get(i); int i = 0; int i = 0; i 0 i < a.length i a.length a a.length i++ i++ i a[i] = l.get(i); a[i] = l.get(i) a[i] a i l.get(i) l.get l i long[] a a static class FastScanner {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st = new StringTokenizer("");

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

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

        int[] readArray(int n) {
            int[] a = new int[n];
            for (int i = 0; i < n; i++) a[i] = nextInt();
            return a;
        }

        long nextLong() {
            return Long.parseLong(next());
        }
    } FastScanner BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) StringTokenizer st = new StringTokenizer(""); st new StringTokenizer("") String next() {
            while (!st.hasMoreTokens())
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            return st.nextToken();
        } next {
            while (!st.hasMoreTokens())
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            return st.nextToken();
        } while (!st.hasMoreTokens())
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                } !st.hasMoreTokens() st.hasMoreTokens() st.hasMoreTokens st 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 int[] readArray(int n) {
            int[] a = new int[n];
            for (int i = 0; i < n; i++) a[i] = nextInt();
            return a;
        } readArray {
            int[] a = new int[n];
            for (int i = 0; i < n; i++) a[i] = nextInt();
            return a;
        } int[] a = new int[n]; a new int[n] n for (int i = 0; i < n; i++) a[i] = nextInt(); int i = 0; int i = 0; i 0 i < n i n i++ i++ i a[i] = nextInt(); a[i] = nextInt() a[i] a i nextInt() nextInt return a; a int n n long nextLong() {
            return Long.parseLong(next());
        } nextLong {
            return Long.parseLong(next());
        } return Long.parseLong(next()); Long.parseLong(next()) Long.parseLong Long next() next public class Main {
    static FastScanner sc = new FastScanner();
    public static void main(String[] args) {
       int n=sc.nextInt();
      int d=sc.nextInt();
        int count=0;
      while (n-->=1){
          long x=sc.nextLong();
          long y=sc.nextLong();
//          Math.abs(x);
//          Math.abs(y);
          double dist=Math.sqrt((x*x)+(y*y));
//          System.out.println(dist);

          if (dist<=d){
              count++;
          }
      }
        System.out.println(count);


    }

        static void sortint(int[] a) {
        ArrayList<Integer> l=new ArrayList<>();
        for (int i:a) l.add(i);
        Collections.sort(l);
        for (int i=0; i<a.length; i++) a[i]=l.get(i);
    }
    static void sort(long[] a) {
        ArrayList<Integer> l = new ArrayList<>();
        for (long i : a) l.add((int) i);
        Collections.sort(l);
        for (int i = 0; i < a.length; i++) a[i] = l.get(i);
    }

    static class FastScanner {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st = new StringTokenizer("");

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

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

        int[] readArray(int n) {
            int[] a = new int[n];
            for (int i = 0; i < n; i++) a[i] = nextInt();
            return a;
        }

        long nextLong() {
            return Long.parseLong(next());
        }
    }
} public class Main {
    static FastScanner sc = new FastScanner();
    public static void main(String[] args) {
       int n=sc.nextInt();
      int d=sc.nextInt();
        int count=0;
      while (n-->=1){
          long x=sc.nextLong();
          long y=sc.nextLong();
//          Math.abs(x);
//          Math.abs(y);
          double dist=Math.sqrt((x*x)+(y*y));
//          System.out.println(dist);

          if (dist<=d){
              count++;
          }
      }
        System.out.println(count);


    }

        static void sortint(int[] a) {
        ArrayList<Integer> l=new ArrayList<>();
        for (int i:a) l.add(i);
        Collections.sort(l);
        for (int i=0; i<a.length; i++) a[i]=l.get(i);
    }
    static void sort(long[] a) {
        ArrayList<Integer> l = new ArrayList<>();
        for (long i : a) l.add((int) i);
        Collections.sort(l);
        for (int i = 0; i < a.length; i++) a[i] = l.get(i);
    }

    static class FastScanner {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st = new StringTokenizer("");

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

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

        int[] readArray(int n) {
            int[] a = new int[n];
            for (int i = 0; i < n; i++) a[i] = nextInt();
            return a;
        }

        long nextLong() {
            return Long.parseLong(next());
        }
    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;
public class Main {
    static FastScanner sc = new FastScanner();
    public static void main(String[] args) {
       int n=sc.nextInt();
      int d=sc.nextInt();
        int count=0;
      while (n-->=1){
          long x=sc.nextLong();
          long y=sc.nextLong();
//          Math.abs(x);
//          Math.abs(y);
          double dist=Math.sqrt((x*x)+(y*y));
//          System.out.println(dist);

          if (dist<=d){
              count++;
          }
      }
        System.out.println(count);


    }

        static void sortint(int[] a) {
        ArrayList<Integer> l=new ArrayList<>();
        for (int i:a) l.add(i);
        Collections.sort(l);
        for (int i=0; i<a.length; i++) a[i]=l.get(i);
    }
    static void sort(long[] a) {
        ArrayList<Integer> l = new ArrayList<>();
        for (long i : a) l.add((int) i);
        Collections.sort(l);
        for (int i = 0; i < a.length; i++) a[i] = l.get(i);
    }

    static class FastScanner {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st = new StringTokenizer("");

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

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

        int[] readArray(int n) {
            int[] a = new int[n];
            for (int i = 0; i < n; i++) a[i] = nextInt();
            return a;
        }

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



