import java.util.*;
import java.lang.*;
import java.io.*;

public class Main{
    public static void main(String[] args) throws IOException{
        FastReader in = new FastReader();
        FastWriter out = new FastWriter();
        long n = in.nextLong();
        double d = in.nextDouble();
        long x, y;
        int ans = 0;
        for (int i = 0; i < n; i++){
            x = in.nextLong();
            y = in.nextLong();
            long a = x*x, b = y*y;
            double c = Math.sqrt(a+b);
            if (c<=d){
                ans++;
            }
        }
        out.pl(ans);
        out.close();
    }
}
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; 
    } 
}
class FastWriter{
    PrintWriter out;
    FastWriter(){
        out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));
	out.flush();
    }
    void pl(Object o){
        out.write(o.toString());
	    out.write("\n");
        out.flush();
    }
    void pl(){
        out.write("\n");
    }
    void p(Object o){
        out.write(o.toString());
    }
    void close(){
        out.flush();
        out.close();
    }  
} import java.util.*; util.* java import java.lang.*; lang.* java import java.io.*; io.* java public class Main{
    public static void main(String[] args) throws IOException{
        FastReader in = new FastReader();
        FastWriter out = new FastWriter();
        long n = in.nextLong();
        double d = in.nextDouble();
        long x, y;
        int ans = 0;
        for (int i = 0; i < n; i++){
            x = in.nextLong();
            y = in.nextLong();
            long a = x*x, b = y*y;
            double c = Math.sqrt(a+b);
            if (c<=d){
                ans++;
            }
        }
        out.pl(ans);
        out.close();
    }
} Main public static void main(String[] args) throws IOException{
        FastReader in = new FastReader();
        FastWriter out = new FastWriter();
        long n = in.nextLong();
        double d = in.nextDouble();
        long x, y;
        int ans = 0;
        for (int i = 0; i < n; i++){
            x = in.nextLong();
            y = in.nextLong();
            long a = x*x, b = y*y;
            double c = Math.sqrt(a+b);
            if (c<=d){
                ans++;
            }
        }
        out.pl(ans);
        out.close();
    } main {
        FastReader in = new FastReader();
        FastWriter out = new FastWriter();
        long n = in.nextLong();
        double d = in.nextDouble();
        long x, y;
        int ans = 0;
        for (int i = 0; i < n; i++){
            x = in.nextLong();
            y = in.nextLong();
            long a = x*x, b = y*y;
            double c = Math.sqrt(a+b);
            if (c<=d){
                ans++;
            }
        }
        out.pl(ans);
        out.close();
    } FastReader in = new FastReader(); in new FastReader() FastWriter out = new FastWriter(); out new FastWriter() long n = in.nextLong(); n in.nextLong() in.nextLong in double d = in.nextDouble(); d in.nextDouble() in.nextDouble in long x x y; y int ans = 0; ans 0 for (int i = 0; i < n; i++){
            x = in.nextLong();
            y = in.nextLong();
            long a = x*x, b = y*y;
            double c = Math.sqrt(a+b);
            if (c<=d){
                ans++;
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            x = in.nextLong();
            y = in.nextLong();
            long a = x*x, b = y*y;
            double c = Math.sqrt(a+b);
            if (c<=d){
                ans++;
            }
        } {
            x = in.nextLong();
            y = in.nextLong();
            long a = x*x, b = y*y;
            double c = Math.sqrt(a+b);
            if (c<=d){
                ans++;
            }
        } x = in.nextLong() x in.nextLong() in.nextLong in y = in.nextLong() y in.nextLong() in.nextLong in long a = x*x a x*x x x b = y*y; b y*y y y double c = Math.sqrt(a+b); c Math.sqrt(a+b) Math.sqrt Math a+b a b if (c<=d){
                ans++;
            } c<=d c d {
                ans++;
            } ans++ ans out.pl(ans) out.pl out ans out.close() out.close out String[] args args 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 class FastWriter{
    PrintWriter out;
    FastWriter(){
        out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));
	out.flush();
    }
    void pl(Object o){
        out.write(o.toString());
	    out.write("\n");
        out.flush();
    }
    void pl(){
        out.write("\n");
    }
    void p(Object o){
        out.write(o.toString());
    }
    void close(){
        out.flush();
        out.close();
    }  
} FastWriter PrintWriter out; out FastWriter(){
        out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));
	out.flush();
    } FastWriter {
        out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));
	out.flush();
    } out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out))) out new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out))) out.flush() out.flush out void pl(Object o){
        out.write(o.toString());
	    out.write("\n");
        out.flush();
    } pl {
        out.write(o.toString());
	    out.write("\n");
        out.flush();
    } out.write(o.toString()) out.write out o.toString() o.toString o out.write("\n") out.write out "\n" out.flush() out.flush out Object o o void pl(){
        out.write("\n");
    } pl {
        out.write("\n");
    } out.write("\n") out.write out "\n" void p(Object o){
        out.write(o.toString());
    } p {
        out.write(o.toString());
    } out.write(o.toString()) out.write out o.toString() o.toString o Object o o void close(){
        out.flush();
        out.close();
    } close {
        out.flush();
        out.close();
    } out.flush() out.flush out out.close() out.close out public class Main{
    public static void main(String[] args) throws IOException{
        FastReader in = new FastReader();
        FastWriter out = new FastWriter();
        long n = in.nextLong();
        double d = in.nextDouble();
        long x, y;
        int ans = 0;
        for (int i = 0; i < n; i++){
            x = in.nextLong();
            y = in.nextLong();
            long a = x*x, b = y*y;
            double c = Math.sqrt(a+b);
            if (c<=d){
                ans++;
            }
        }
        out.pl(ans);
        out.close();
    }
} public class Main{
    public static void main(String[] args) throws IOException{
        FastReader in = new FastReader();
        FastWriter out = new FastWriter();
        long n = in.nextLong();
        double d = in.nextDouble();
        long x, y;
        int ans = 0;
        for (int i = 0; i < n; i++){
            x = in.nextLong();
            y = in.nextLong();
            long a = x*x, b = y*y;
            double c = Math.sqrt(a+b);
            if (c<=d){
                ans++;
            }
        }
        out.pl(ans);
        out.close();
    }
} Main
import java.util.*;
import java.lang.*;
import java.io.*;

public class Main{
    public static void main(String[] args) throws IOException{
        FastReader in = new FastReader();
        FastWriter out = new FastWriter();
        long n = in.nextLong();
        double d = in.nextDouble();
        long x, y;
        int ans = 0;
        for (int i = 0; i < n; i++){
            x = in.nextLong();
            y = in.nextLong();
            long a = x*x, b = y*y;
            double c = Math.sqrt(a+b);
            if (c<=d){
                ans++;
            }
        }
        out.pl(ans);
        out.close();
    }
}
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; 
    } 
}
class FastWriter{
    PrintWriter out;
    FastWriter(){
        out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));
	out.flush();
    }
    void pl(Object o){
        out.write(o.toString());
	    out.write("\n");
        out.flush();
    }
    void pl(){
        out.write("\n");
    }
    void p(Object o){
        out.write(o.toString());
    }
    void close(){
        out.flush();
        out.close();
    }  
}
