import java.io.*;

public class Main {
    public static void main(String[] args) throws Exception {
        try{
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            
            String strSplit[] = br.readLine().split(" ");
            int N = Integer.parseInt(strSplit[0]);
            int D = Integer.parseInt(strSplit[1]);
            
            int ans = 0;
            for(int i=0; i<N; i++){
                String pqSplit[] = br.readLine().split(" ");
                long p = Integer.parseInt(pqSplit[0]);
                long q = Integer.parseInt(pqSplit[1]);
                
                double pq = Math.sqrt(p*p + q*q);
                
                if(pq <= D){
                    ans++;
                }
            }
            
            System.out.println(ans);
            
        }catch(Exception e){
            System.out.println(e);
        }
    }
} import java.io.*; io.* java public class Main {
    public static void main(String[] args) throws Exception {
        try{
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            
            String strSplit[] = br.readLine().split(" ");
            int N = Integer.parseInt(strSplit[0]);
            int D = Integer.parseInt(strSplit[1]);
            
            int ans = 0;
            for(int i=0; i<N; i++){
                String pqSplit[] = br.readLine().split(" ");
                long p = Integer.parseInt(pqSplit[0]);
                long q = Integer.parseInt(pqSplit[1]);
                
                double pq = Math.sqrt(p*p + q*q);
                
                if(pq <= D){
                    ans++;
                }
            }
            
            System.out.println(ans);
            
        }catch(Exception e){
            System.out.println(e);
        }
    }
} Main public static void main(String[] args) throws Exception {
        try{
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            
            String strSplit[] = br.readLine().split(" ");
            int N = Integer.parseInt(strSplit[0]);
            int D = Integer.parseInt(strSplit[1]);
            
            int ans = 0;
            for(int i=0; i<N; i++){
                String pqSplit[] = br.readLine().split(" ");
                long p = Integer.parseInt(pqSplit[0]);
                long q = Integer.parseInt(pqSplit[1]);
                
                double pq = Math.sqrt(p*p + q*q);
                
                if(pq <= D){
                    ans++;
                }
            }
            
            System.out.println(ans);
            
        }catch(Exception e){
            System.out.println(e);
        }
    } main {
        try{
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            
            String strSplit[] = br.readLine().split(" ");
            int N = Integer.parseInt(strSplit[0]);
            int D = Integer.parseInt(strSplit[1]);
            
            int ans = 0;
            for(int i=0; i<N; i++){
                String pqSplit[] = br.readLine().split(" ");
                long p = Integer.parseInt(pqSplit[0]);
                long q = Integer.parseInt(pqSplit[1]);
                
                double pq = Math.sqrt(p*p + q*q);
                
                if(pq <= D){
                    ans++;
                }
            }
            
            System.out.println(ans);
            
        }catch(Exception e){
            System.out.println(e);
        }
    } try{
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            
            String strSplit[] = br.readLine().split(" ");
            int N = Integer.parseInt(strSplit[0]);
            int D = Integer.parseInt(strSplit[1]);
            
            int ans = 0;
            for(int i=0; i<N; i++){
                String pqSplit[] = br.readLine().split(" ");
                long p = Integer.parseInt(pqSplit[0]);
                long q = Integer.parseInt(pqSplit[1]);
                
                double pq = Math.sqrt(p*p + q*q);
                
                if(pq <= D){
                    ans++;
                }
            }
            
            System.out.println(ans);
            
        }catch(Exception e){
            System.out.println(e);
        } catch(Exception e){
            System.out.println(e);
        } Exception e {
            System.out.println(e);
        } System.out.println(e) System.out.println System.out System System.out e {
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            
            String strSplit[] = br.readLine().split(" ");
            int N = Integer.parseInt(strSplit[0]);
            int D = Integer.parseInt(strSplit[1]);
            
            int ans = 0;
            for(int i=0; i<N; i++){
                String pqSplit[] = br.readLine().split(" ");
                long p = Integer.parseInt(pqSplit[0]);
                long q = Integer.parseInt(pqSplit[1]);
                
                double pq = Math.sqrt(p*p + q*q);
                
                if(pq <= D){
                    ans++;
                }
            }
            
            System.out.println(ans);
            
        } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String strSplit[] = br.readLine().split(" "); strSplit br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int N = Integer.parseInt(strSplit[0]); N Integer.parseInt(strSplit[0]) Integer.parseInt Integer strSplit[0] strSplit 0 int D = Integer.parseInt(strSplit[1]); D Integer.parseInt(strSplit[1]) Integer.parseInt Integer strSplit[1] strSplit 1 int ans = 0; ans 0 for(int i=0; i<N; i++){
                String pqSplit[] = br.readLine().split(" ");
                long p = Integer.parseInt(pqSplit[0]);
                long q = Integer.parseInt(pqSplit[1]);
                
                double pq = Math.sqrt(p*p + q*q);
                
                if(pq <= D){
                    ans++;
                }
            } int i=0; int i=0; i 0 i<N i N i++ i++ i {
                String pqSplit[] = br.readLine().split(" ");
                long p = Integer.parseInt(pqSplit[0]);
                long q = Integer.parseInt(pqSplit[1]);
                
                double pq = Math.sqrt(p*p + q*q);
                
                if(pq <= D){
                    ans++;
                }
            } {
                String pqSplit[] = br.readLine().split(" ");
                long p = Integer.parseInt(pqSplit[0]);
                long q = Integer.parseInt(pqSplit[1]);
                
                double pq = Math.sqrt(p*p + q*q);
                
                if(pq <= D){
                    ans++;
                }
            } String pqSplit[] = br.readLine().split(" "); pqSplit br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " long p = Integer.parseInt(pqSplit[0]); p Integer.parseInt(pqSplit[0]) Integer.parseInt Integer pqSplit[0] pqSplit 0 long q = Integer.parseInt(pqSplit[1]); q Integer.parseInt(pqSplit[1]) Integer.parseInt Integer pqSplit[1] pqSplit 1 double pq = Math.sqrt(p*p + q*q); pq Math.sqrt(p*p + q*q) Math.sqrt Math p*p + q*q p*p p p q*q q q if(pq <= D){
                    ans++;
                } pq <= D pq D {
                    ans++;
                } ans++ ans System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        try{
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            
            String strSplit[] = br.readLine().split(" ");
            int N = Integer.parseInt(strSplit[0]);
            int D = Integer.parseInt(strSplit[1]);
            
            int ans = 0;
            for(int i=0; i<N; i++){
                String pqSplit[] = br.readLine().split(" ");
                long p = Integer.parseInt(pqSplit[0]);
                long q = Integer.parseInt(pqSplit[1]);
                
                double pq = Math.sqrt(p*p + q*q);
                
                if(pq <= D){
                    ans++;
                }
            }
            
            System.out.println(ans);
            
        }catch(Exception e){
            System.out.println(e);
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        try{
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            
            String strSplit[] = br.readLine().split(" ");
            int N = Integer.parseInt(strSplit[0]);
            int D = Integer.parseInt(strSplit[1]);
            
            int ans = 0;
            for(int i=0; i<N; i++){
                String pqSplit[] = br.readLine().split(" ");
                long p = Integer.parseInt(pqSplit[0]);
                long q = Integer.parseInt(pqSplit[1]);
                
                double pq = Math.sqrt(p*p + q*q);
                
                if(pq <= D){
                    ans++;
                }
            }
            
            System.out.println(ans);
            
        }catch(Exception e){
            System.out.println(e);
        }
    }
} Main
import java.io.*;

public class Main {
    public static void main(String[] args) throws Exception {
        try{
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            
            String strSplit[] = br.readLine().split(" ");
            int N = Integer.parseInt(strSplit[0]);
            int D = Integer.parseInt(strSplit[1]);
            
            int ans = 0;
            for(int i=0; i<N; i++){
                String pqSplit[] = br.readLine().split(" ");
                long p = Integer.parseInt(pqSplit[0]);
                long q = Integer.parseInt(pqSplit[1]);
                
                double pq = Math.sqrt(p*p + q*q);
                
                if(pq <= D){
                    ans++;
                }
            }
            
            System.out.println(ans);
            
        }catch(Exception e){
            System.out.println(e);
        }
    }
}