import java.io.*;
import java.util.*;
public class Main{
    public static void main(String []args) throws Exception {
        // BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Scanner sc = new Scanner(System.in);
        // int n = Integer.parseInt(br.readLine());
        // long [][] dp = new long[n+1][n+1];
        // ArrayList<String> list = new ArrayList<>();
        int n = sc.nextInt();
        double d = sc.nextDouble();
        long x;
        long y ;
        double dis;
        int ans = 0;
        for(int i = 0 ; i < n ; i++){
            x = sc.nextInt();
            y = sc.nextInt();
            x = x*x;
            y = y*y;
            dis = Math.sqrt(x+y);
            if(dis <= d){
                ans++;
            }
        }
        System.out.println(ans);
    }
} import java.io.*; io.* java import java.util.*; util.* java public class Main{
    public static void main(String []args) throws Exception {
        // BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Scanner sc = new Scanner(System.in);
        // int n = Integer.parseInt(br.readLine());
        // long [][] dp = new long[n+1][n+1];
        // ArrayList<String> list = new ArrayList<>();
        int n = sc.nextInt();
        double d = sc.nextDouble();
        long x;
        long y ;
        double dis;
        int ans = 0;
        for(int i = 0 ; i < n ; i++){
            x = sc.nextInt();
            y = sc.nextInt();
            x = x*x;
            y = y*y;
            dis = Math.sqrt(x+y);
            if(dis <= d){
                ans++;
            }
        }
        System.out.println(ans);
    }
} Main public static void main(String []args) throws Exception {
        // BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Scanner sc = new Scanner(System.in);
        // int n = Integer.parseInt(br.readLine());
        // long [][] dp = new long[n+1][n+1];
        // ArrayList<String> list = new ArrayList<>();
        int n = sc.nextInt();
        double d = sc.nextDouble();
        long x;
        long y ;
        double dis;
        int ans = 0;
        for(int i = 0 ; i < n ; i++){
            x = sc.nextInt();
            y = sc.nextInt();
            x = x*x;
            y = y*y;
            dis = Math.sqrt(x+y);
            if(dis <= d){
                ans++;
            }
        }
        System.out.println(ans);
    } main {
        // BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Scanner sc = new Scanner(System.in);
        // int n = Integer.parseInt(br.readLine());
        // long [][] dp = new long[n+1][n+1];
        // ArrayList<String> list = new ArrayList<>();
        int n = sc.nextInt();
        double d = sc.nextDouble();
        long x;
        long y ;
        double dis;
        int ans = 0;
        for(int i = 0 ; i < n ; i++){
            x = sc.nextInt();
            y = sc.nextInt();
            x = x*x;
            y = y*y;
            dis = Math.sqrt(x+y);
            if(dis <= d){
                ans++;
            }
        }
        System.out.println(ans);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc double d = sc.nextDouble(); d sc.nextDouble() sc.nextDouble sc long x; x long y ; y double dis; dis int ans = 0; ans 0 for(int i = 0 ; i < n ; i++){
            x = sc.nextInt();
            y = sc.nextInt();
            x = x*x;
            y = y*y;
            dis = Math.sqrt(x+y);
            if(dis <= d){
                ans++;
            }
        } int i = 0 ; int i = 0 ; i 0 i < n i n i++ i++ i {
            x = sc.nextInt();
            y = sc.nextInt();
            x = x*x;
            y = y*y;
            dis = Math.sqrt(x+y);
            if(dis <= d){
                ans++;
            }
        } {
            x = sc.nextInt();
            y = sc.nextInt();
            x = x*x;
            y = y*y;
            dis = Math.sqrt(x+y);
            if(dis <= d){
                ans++;
            }
        } x = sc.nextInt() x sc.nextInt() sc.nextInt sc y = sc.nextInt() y sc.nextInt() sc.nextInt sc x = x*x x x*x x x y = y*y y y*y y y dis = Math.sqrt(x+y) dis Math.sqrt(x+y) Math.sqrt Math x+y x y if(dis <= d){
                ans++;
            } dis <= d dis 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 {
        // BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Scanner sc = new Scanner(System.in);
        // int n = Integer.parseInt(br.readLine());
        // long [][] dp = new long[n+1][n+1];
        // ArrayList<String> list = new ArrayList<>();
        int n = sc.nextInt();
        double d = sc.nextDouble();
        long x;
        long y ;
        double dis;
        int ans = 0;
        for(int i = 0 ; i < n ; i++){
            x = sc.nextInt();
            y = sc.nextInt();
            x = x*x;
            y = y*y;
            dis = Math.sqrt(x+y);
            if(dis <= d){
                ans++;
            }
        }
        System.out.println(ans);
    }
} public class Main{
    public static void main(String []args) throws Exception {
        // BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Scanner sc = new Scanner(System.in);
        // int n = Integer.parseInt(br.readLine());
        // long [][] dp = new long[n+1][n+1];
        // ArrayList<String> list = new ArrayList<>();
        int n = sc.nextInt();
        double d = sc.nextDouble();
        long x;
        long y ;
        double dis;
        int ans = 0;
        for(int i = 0 ; i < n ; i++){
            x = sc.nextInt();
            y = sc.nextInt();
            x = x*x;
            y = y*y;
            dis = Math.sqrt(x+y);
            if(dis <= d){
                ans++;
            }
        }
        System.out.println(ans);
    }
} Main
import java.io.*;
import java.util.*;
public class Main{
    public static void main(String []args) throws Exception {
        // BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Scanner sc = new Scanner(System.in);
        // int n = Integer.parseInt(br.readLine());
        // long [][] dp = new long[n+1][n+1];
        // ArrayList<String> list = new ArrayList<>();
        int n = sc.nextInt();
        double d = sc.nextDouble();
        long x;
        long y ;
        double dis;
        int ans = 0;
        for(int i = 0 ; i < n ; i++){
            x = sc.nextInt();
            y = sc.nextInt();
            x = x*x;
            y = y*y;
            dis = Math.sqrt(x+y);
            if(dis <= d){
                ans++;
            }
        }
        System.out.println(ans);
    }
}