import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        String input = scan.nextLine();
        int n = Integer.parseInt(input.split(" ")[0]);
        double d = Integer.parseInt(input.split(" ")[1]);
        int c = 0;
        int[][] x = new int[n][2];
        for(int i = 0; i < n ; i++){
            input = scan.nextLine();
            x[i][0] = Integer.parseInt(input.split(" ")[0]);
            x[i][1] = Integer.parseInt(input.split(" ")[1]);
            if(d >= Math.sqrt(Math.pow(x[i][0] , 2) + Math.pow(x[i][1] , 2))){
                c += 1;
            }
        }
        System.out.println(c);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        String input = scan.nextLine();
        int n = Integer.parseInt(input.split(" ")[0]);
        double d = Integer.parseInt(input.split(" ")[1]);
        int c = 0;
        int[][] x = new int[n][2];
        for(int i = 0; i < n ; i++){
            input = scan.nextLine();
            x[i][0] = Integer.parseInt(input.split(" ")[0]);
            x[i][1] = Integer.parseInt(input.split(" ")[1]);
            if(d >= Math.sqrt(Math.pow(x[i][0] , 2) + Math.pow(x[i][1] , 2))){
                c += 1;
            }
        }
        System.out.println(c);
    }
} Main public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        String input = scan.nextLine();
        int n = Integer.parseInt(input.split(" ")[0]);
        double d = Integer.parseInt(input.split(" ")[1]);
        int c = 0;
        int[][] x = new int[n][2];
        for(int i = 0; i < n ; i++){
            input = scan.nextLine();
            x[i][0] = Integer.parseInt(input.split(" ")[0]);
            x[i][1] = Integer.parseInt(input.split(" ")[1]);
            if(d >= Math.sqrt(Math.pow(x[i][0] , 2) + Math.pow(x[i][1] , 2))){
                c += 1;
            }
        }
        System.out.println(c);
    } main {
        Scanner scan = new Scanner(System.in);
        String input = scan.nextLine();
        int n = Integer.parseInt(input.split(" ")[0]);
        double d = Integer.parseInt(input.split(" ")[1]);
        int c = 0;
        int[][] x = new int[n][2];
        for(int i = 0; i < n ; i++){
            input = scan.nextLine();
            x[i][0] = Integer.parseInt(input.split(" ")[0]);
            x[i][1] = Integer.parseInt(input.split(" ")[1]);
            if(d >= Math.sqrt(Math.pow(x[i][0] , 2) + Math.pow(x[i][1] , 2))){
                c += 1;
            }
        }
        System.out.println(c);
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String input = scan.nextLine(); input scan.nextLine() scan.nextLine scan int n = Integer.parseInt(input.split(" ")[0]); n Integer.parseInt(input.split(" ")[0]) Integer.parseInt Integer input.split(" ")[0] input.split(" ") input.split input " " 0 double d = Integer.parseInt(input.split(" ")[1]); d Integer.parseInt(input.split(" ")[1]) Integer.parseInt Integer input.split(" ")[1] input.split(" ") input.split input " " 1 int c = 0; c 0 int[][] x = new int[n][2]; x new int[n][2] n 2 for(int i = 0; i < n ; i++){
            input = scan.nextLine();
            x[i][0] = Integer.parseInt(input.split(" ")[0]);
            x[i][1] = Integer.parseInt(input.split(" ")[1]);
            if(d >= Math.sqrt(Math.pow(x[i][0] , 2) + Math.pow(x[i][1] , 2))){
                c += 1;
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            input = scan.nextLine();
            x[i][0] = Integer.parseInt(input.split(" ")[0]);
            x[i][1] = Integer.parseInt(input.split(" ")[1]);
            if(d >= Math.sqrt(Math.pow(x[i][0] , 2) + Math.pow(x[i][1] , 2))){
                c += 1;
            }
        } {
            input = scan.nextLine();
            x[i][0] = Integer.parseInt(input.split(" ")[0]);
            x[i][1] = Integer.parseInt(input.split(" ")[1]);
            if(d >= Math.sqrt(Math.pow(x[i][0] , 2) + Math.pow(x[i][1] , 2))){
                c += 1;
            }
        } input = scan.nextLine() input scan.nextLine() scan.nextLine scan x[i][0] = Integer.parseInt(input.split(" ")[0]) x[i][0] x[i] x i 0 Integer.parseInt(input.split(" ")[0]) Integer.parseInt Integer input.split(" ")[0] input.split(" ") input.split input " " 0 x[i][1] = Integer.parseInt(input.split(" ")[1]) x[i][1] x[i] x i 1 Integer.parseInt(input.split(" ")[1]) Integer.parseInt Integer input.split(" ")[1] input.split(" ") input.split input " " 1 if(d >= Math.sqrt(Math.pow(x[i][0] , 2) + Math.pow(x[i][1] , 2))){
                c += 1;
            } d >= Math.sqrt(Math.pow(x[i][0] , 2) + Math.pow(x[i][1] , 2)) d Math.sqrt(Math.pow(x[i][0] , 2) + Math.pow(x[i][1] , 2)) Math.sqrt Math Math.pow(x[i][0] , 2) + Math.pow(x[i][1] , 2) Math.pow(x[i][0] , 2) Math.pow Math x[i][0] x[i] x i 0 2 Math.pow(x[i][1] , 2) Math.pow Math x[i][1] x[i] x i 1 2 {
                c += 1;
            } c += 1 c 1 System.out.println(c) System.out.println System.out System System.out c String[] args args public class Main {
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        String input = scan.nextLine();
        int n = Integer.parseInt(input.split(" ")[0]);
        double d = Integer.parseInt(input.split(" ")[1]);
        int c = 0;
        int[][] x = new int[n][2];
        for(int i = 0; i < n ; i++){
            input = scan.nextLine();
            x[i][0] = Integer.parseInt(input.split(" ")[0]);
            x[i][1] = Integer.parseInt(input.split(" ")[1]);
            if(d >= Math.sqrt(Math.pow(x[i][0] , 2) + Math.pow(x[i][1] , 2))){
                c += 1;
            }
        }
        System.out.println(c);
    }
} public class Main {
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        String input = scan.nextLine();
        int n = Integer.parseInt(input.split(" ")[0]);
        double d = Integer.parseInt(input.split(" ")[1]);
        int c = 0;
        int[][] x = new int[n][2];
        for(int i = 0; i < n ; i++){
            input = scan.nextLine();
            x[i][0] = Integer.parseInt(input.split(" ")[0]);
            x[i][1] = Integer.parseInt(input.split(" ")[1]);
            if(d >= Math.sqrt(Math.pow(x[i][0] , 2) + Math.pow(x[i][1] , 2))){
                c += 1;
            }
        }
        System.out.println(c);
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        String input = scan.nextLine();
        int n = Integer.parseInt(input.split(" ")[0]);
        double d = Integer.parseInt(input.split(" ")[1]);
        int c = 0;
        int[][] x = new int[n][2];
        for(int i = 0; i < n ; i++){
            input = scan.nextLine();
            x[i][0] = Integer.parseInt(input.split(" ")[0]);
            x[i][1] = Integer.parseInt(input.split(" ")[1]);
            if(d >= Math.sqrt(Math.pow(x[i][0] , 2) + Math.pow(x[i][1] , 2))){
                c += 1;
            }
        }
        System.out.println(c);
    }
}
