import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {


    public static void main(String[] args) throws IOException {

        BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));
        String line = stdin.readLine();
        String[] temp = line.split(" ");
        int number = Integer.parseInt(temp[0]);
        int distance = Integer.parseInt(temp[1]);

        int count = 0;
        for(int i = 0 ; i < number; i++){
            line = stdin.readLine();
            temp = line.split(" ");
            double x = Double.parseDouble(temp[0]);
            double y = Double.parseDouble(temp[1]);
            double d =   Math.sqrt(x*x + y*y);
            if(d<=distance)
                count++;
        }

        System.out.println(count);
    }

}  import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {


    public static void main(String[] args) throws IOException {

        BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));
        String line = stdin.readLine();
        String[] temp = line.split(" ");
        int number = Integer.parseInt(temp[0]);
        int distance = Integer.parseInt(temp[1]);

        int count = 0;
        for(int i = 0 ; i < number; i++){
            line = stdin.readLine();
            temp = line.split(" ");
            double x = Double.parseDouble(temp[0]);
            double y = Double.parseDouble(temp[1]);
            double d =   Math.sqrt(x*x + y*y);
            if(d<=distance)
                count++;
        }

        System.out.println(count);
    }

} Main public static void main(String[] args) throws IOException {

        BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));
        String line = stdin.readLine();
        String[] temp = line.split(" ");
        int number = Integer.parseInt(temp[0]);
        int distance = Integer.parseInt(temp[1]);

        int count = 0;
        for(int i = 0 ; i < number; i++){
            line = stdin.readLine();
            temp = line.split(" ");
            double x = Double.parseDouble(temp[0]);
            double y = Double.parseDouble(temp[1]);
            double d =   Math.sqrt(x*x + y*y);
            if(d<=distance)
                count++;
        }

        System.out.println(count);
    } main {

        BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));
        String line = stdin.readLine();
        String[] temp = line.split(" ");
        int number = Integer.parseInt(temp[0]);
        int distance = Integer.parseInt(temp[1]);

        int count = 0;
        for(int i = 0 ; i < number; i++){
            line = stdin.readLine();
            temp = line.split(" ");
            double x = Double.parseDouble(temp[0]);
            double y = Double.parseDouble(temp[1]);
            double d =   Math.sqrt(x*x + y*y);
            if(d<=distance)
                count++;
        }

        System.out.println(count);
    } BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in)); stdin new BufferedReader(new InputStreamReader(System.in)) String line = stdin.readLine(); line stdin.readLine() stdin.readLine stdin String[] temp = line.split(" "); temp line.split(" ") line.split line " " int number = Integer.parseInt(temp[0]); number Integer.parseInt(temp[0]) Integer.parseInt Integer temp[0] temp 0 int distance = Integer.parseInt(temp[1]); distance Integer.parseInt(temp[1]) Integer.parseInt Integer temp[1] temp 1 int count = 0; count 0 for(int i = 0 ; i < number; i++){
            line = stdin.readLine();
            temp = line.split(" ");
            double x = Double.parseDouble(temp[0]);
            double y = Double.parseDouble(temp[1]);
            double d =   Math.sqrt(x*x + y*y);
            if(d<=distance)
                count++;
        } int i = 0 ; int i = 0 ; i 0 i < number i number i++ i++ i {
            line = stdin.readLine();
            temp = line.split(" ");
            double x = Double.parseDouble(temp[0]);
            double y = Double.parseDouble(temp[1]);
            double d =   Math.sqrt(x*x + y*y);
            if(d<=distance)
                count++;
        } {
            line = stdin.readLine();
            temp = line.split(" ");
            double x = Double.parseDouble(temp[0]);
            double y = Double.parseDouble(temp[1]);
            double d =   Math.sqrt(x*x + y*y);
            if(d<=distance)
                count++;
        } line = stdin.readLine() line stdin.readLine() stdin.readLine stdin temp = line.split(" ") temp line.split(" ") line.split line " " double x = Double.parseDouble(temp[0]); x Double.parseDouble(temp[0]) Double.parseDouble Double temp[0] temp 0 double y = Double.parseDouble(temp[1]); y Double.parseDouble(temp[1]) Double.parseDouble Double temp[1] temp 1 double d =   Math.sqrt(x*x + y*y); d Math.sqrt(x*x + y*y) Math.sqrt Math x*x + y*y x*x x x y*y y y if(d<=distance)
                count++; d<=distance d distance count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {


    public static void main(String[] args) throws IOException {

        BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));
        String line = stdin.readLine();
        String[] temp = line.split(" ");
        int number = Integer.parseInt(temp[0]);
        int distance = Integer.parseInt(temp[1]);

        int count = 0;
        for(int i = 0 ; i < number; i++){
            line = stdin.readLine();
            temp = line.split(" ");
            double x = Double.parseDouble(temp[0]);
            double y = Double.parseDouble(temp[1]);
            double d =   Math.sqrt(x*x + y*y);
            if(d<=distance)
                count++;
        }

        System.out.println(count);
    }

} public class Main {


    public static void main(String[] args) throws IOException {

        BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));
        String line = stdin.readLine();
        String[] temp = line.split(" ");
        int number = Integer.parseInt(temp[0]);
        int distance = Integer.parseInt(temp[1]);

        int count = 0;
        for(int i = 0 ; i < number; i++){
            line = stdin.readLine();
            temp = line.split(" ");
            double x = Double.parseDouble(temp[0]);
            double y = Double.parseDouble(temp[1]);
            double d =   Math.sqrt(x*x + y*y);
            if(d<=distance)
                count++;
        }

        System.out.println(count);
    }

} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {


    public static void main(String[] args) throws IOException {

        BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));
        String line = stdin.readLine();
        String[] temp = line.split(" ");
        int number = Integer.parseInt(temp[0]);
        int distance = Integer.parseInt(temp[1]);

        int count = 0;
        for(int i = 0 ; i < number; i++){
            line = stdin.readLine();
            temp = line.split(" ");
            double x = Double.parseDouble(temp[0]);
            double y = Double.parseDouble(temp[1]);
            double d =   Math.sqrt(x*x + y*y);
            if(d<=distance)
                count++;
        }

        System.out.println(count);
    }

} 
