
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] in = br.readLine().split(" ");
        int n = Integer.parseInt(in[0]);
        double d = Double.parseDouble(in[1]);
        int c = 0;
        for(int i=0;i<n;i++){
            in = br.readLine().split(" ");
            double x = Double.parseDouble(in[0]);
            double y= Double.parseDouble(in[1]);
            if(Double.compare(d, Math.sqrt(Math.pow(x,2)+Math.pow(y,2)))>=0){
                c++;
            }
        }
            System.out.println(c);

    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.ArrayList; ArrayList java.util import java.util.Arrays; Arrays java.util import java.util.List; List java.util public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] in = br.readLine().split(" ");
        int n = Integer.parseInt(in[0]);
        double d = Double.parseDouble(in[1]);
        int c = 0;
        for(int i=0;i<n;i++){
            in = br.readLine().split(" ");
            double x = Double.parseDouble(in[0]);
            double y= Double.parseDouble(in[1]);
            if(Double.compare(d, Math.sqrt(Math.pow(x,2)+Math.pow(y,2)))>=0){
                c++;
            }
        }
            System.out.println(c);

    }
} Main public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] in = br.readLine().split(" ");
        int n = Integer.parseInt(in[0]);
        double d = Double.parseDouble(in[1]);
        int c = 0;
        for(int i=0;i<n;i++){
            in = br.readLine().split(" ");
            double x = Double.parseDouble(in[0]);
            double y= Double.parseDouble(in[1]);
            if(Double.compare(d, Math.sqrt(Math.pow(x,2)+Math.pow(y,2)))>=0){
                c++;
            }
        }
            System.out.println(c);

    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] in = br.readLine().split(" ");
        int n = Integer.parseInt(in[0]);
        double d = Double.parseDouble(in[1]);
        int c = 0;
        for(int i=0;i<n;i++){
            in = br.readLine().split(" ");
            double x = Double.parseDouble(in[0]);
            double y= Double.parseDouble(in[1]);
            if(Double.compare(d, Math.sqrt(Math.pow(x,2)+Math.pow(y,2)))>=0){
                c++;
            }
        }
            System.out.println(c);

    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] in = br.readLine().split(" "); in br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int n = Integer.parseInt(in[0]); n Integer.parseInt(in[0]) Integer.parseInt Integer in[0] in 0 double d = Double.parseDouble(in[1]); d Double.parseDouble(in[1]) Double.parseDouble Double in[1] in 1 int c = 0; c 0 for(int i=0;i<n;i++){
            in = br.readLine().split(" ");
            double x = Double.parseDouble(in[0]);
            double y= Double.parseDouble(in[1]);
            if(Double.compare(d, Math.sqrt(Math.pow(x,2)+Math.pow(y,2)))>=0){
                c++;
            }
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            in = br.readLine().split(" ");
            double x = Double.parseDouble(in[0]);
            double y= Double.parseDouble(in[1]);
            if(Double.compare(d, Math.sqrt(Math.pow(x,2)+Math.pow(y,2)))>=0){
                c++;
            }
        } {
            in = br.readLine().split(" ");
            double x = Double.parseDouble(in[0]);
            double y= Double.parseDouble(in[1]);
            if(Double.compare(d, Math.sqrt(Math.pow(x,2)+Math.pow(y,2)))>=0){
                c++;
            }
        } in = br.readLine().split(" ") in br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " double x = Double.parseDouble(in[0]); x Double.parseDouble(in[0]) Double.parseDouble Double in[0] in 0 double y= Double.parseDouble(in[1]); y Double.parseDouble(in[1]) Double.parseDouble Double in[1] in 1 if(Double.compare(d, Math.sqrt(Math.pow(x,2)+Math.pow(y,2)))>=0){
                c++;
            } Double.compare(d, Math.sqrt(Math.pow(x,2)+Math.pow(y,2)))>=0 Double.compare(d, Math.sqrt(Math.pow(x,2)+Math.pow(y,2))) Double.compare Double d Math.sqrt(Math.pow(x,2)+Math.pow(y,2)) Math.sqrt Math Math.pow(x,2)+Math.pow(y,2) Math.pow(x,2) Math.pow Math x 2 Math.pow(y,2) Math.pow Math y 2 0 {
                c++;
            } c++ c 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) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] in = br.readLine().split(" ");
        int n = Integer.parseInt(in[0]);
        double d = Double.parseDouble(in[1]);
        int c = 0;
        for(int i=0;i<n;i++){
            in = br.readLine().split(" ");
            double x = Double.parseDouble(in[0]);
            double y= Double.parseDouble(in[1]);
            if(Double.compare(d, Math.sqrt(Math.pow(x,2)+Math.pow(y,2)))>=0){
                c++;
            }
        }
            System.out.println(c);

    }
} public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] in = br.readLine().split(" ");
        int n = Integer.parseInt(in[0]);
        double d = Double.parseDouble(in[1]);
        int c = 0;
        for(int i=0;i<n;i++){
            in = br.readLine().split(" ");
            double x = Double.parseDouble(in[0]);
            double y= Double.parseDouble(in[1]);
            if(Double.compare(d, Math.sqrt(Math.pow(x,2)+Math.pow(y,2)))>=0){
                c++;
            }
        }
            System.out.println(c);

    }
} Main

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] in = br.readLine().split(" ");
        int n = Integer.parseInt(in[0]);
        double d = Double.parseDouble(in[1]);
        int c = 0;
        for(int i=0;i<n;i++){
            in = br.readLine().split(" ");
            double x = Double.parseDouble(in[0]);
            double y= Double.parseDouble(in[1]);
            if(Double.compare(d, Math.sqrt(Math.pow(x,2)+Math.pow(y,2)))>=0){
                c++;
            }
        }
            System.out.println(c);

    }
}
