import java.util.*;
import java.io.*;

public class Main {
    public static void main(String[] args) throws Exception {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
        String[] input1 = br.readLine().split(" ");
        int n = Integer.parseInt(input1[0]);
        int d = Integer.parseInt(input1[1]);
        
        Integer[][] numbers = new Integer[n][2];
        int ans = 0;
        
        for(int i = 0; i < n; i++){
            String[] input2 = br.readLine().split(" ");
            numbers[i][0] = Integer.parseInt(input2[0]);
            numbers[i][1] = Integer.parseInt(input2[1]);
            if(Math.sqrt(Math.pow(numbers[i][0], 2) + Math.pow(numbers[i][1], 2)) <= d){
                ans++;
            }
        }
        
        out.println(ans);
        out.close();
        
    }
} import java.util.*; util.* java import java.io.*; io.* java public class Main {
    public static void main(String[] args) throws Exception {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
        String[] input1 = br.readLine().split(" ");
        int n = Integer.parseInt(input1[0]);
        int d = Integer.parseInt(input1[1]);
        
        Integer[][] numbers = new Integer[n][2];
        int ans = 0;
        
        for(int i = 0; i < n; i++){
            String[] input2 = br.readLine().split(" ");
            numbers[i][0] = Integer.parseInt(input2[0]);
            numbers[i][1] = Integer.parseInt(input2[1]);
            if(Math.sqrt(Math.pow(numbers[i][0], 2) + Math.pow(numbers[i][1], 2)) <= d){
                ans++;
            }
        }
        
        out.println(ans);
        out.close();
        
    }
} Main public static void main(String[] args) throws Exception {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
        String[] input1 = br.readLine().split(" ");
        int n = Integer.parseInt(input1[0]);
        int d = Integer.parseInt(input1[1]);
        
        Integer[][] numbers = new Integer[n][2];
        int ans = 0;
        
        for(int i = 0; i < n; i++){
            String[] input2 = br.readLine().split(" ");
            numbers[i][0] = Integer.parseInt(input2[0]);
            numbers[i][1] = Integer.parseInt(input2[1]);
            if(Math.sqrt(Math.pow(numbers[i][0], 2) + Math.pow(numbers[i][1], 2)) <= d){
                ans++;
            }
        }
        
        out.println(ans);
        out.close();
        
    } main {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
        String[] input1 = br.readLine().split(" ");
        int n = Integer.parseInt(input1[0]);
        int d = Integer.parseInt(input1[1]);
        
        Integer[][] numbers = new Integer[n][2];
        int ans = 0;
        
        for(int i = 0; i < n; i++){
            String[] input2 = br.readLine().split(" ");
            numbers[i][0] = Integer.parseInt(input2[0]);
            numbers[i][1] = Integer.parseInt(input2[1]);
            if(Math.sqrt(Math.pow(numbers[i][0], 2) + Math.pow(numbers[i][1], 2)) <= d){
                ans++;
            }
        }
        
        out.println(ans);
        out.close();
        
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out)); out new PrintWriter(new OutputStreamWriter(System.out)) String[] input1 = br.readLine().split(" "); input1 br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int n = Integer.parseInt(input1[0]); n Integer.parseInt(input1[0]) Integer.parseInt Integer input1[0] input1 0 int d = Integer.parseInt(input1[1]); d Integer.parseInt(input1[1]) Integer.parseInt Integer input1[1] input1 1 Integer[][] numbers = new Integer[n][2]; numbers new Integer[n][2] n 2 int ans = 0; ans 0 for(int i = 0; i < n; i++){
            String[] input2 = br.readLine().split(" ");
            numbers[i][0] = Integer.parseInt(input2[0]);
            numbers[i][1] = Integer.parseInt(input2[1]);
            if(Math.sqrt(Math.pow(numbers[i][0], 2) + Math.pow(numbers[i][1], 2)) <= d){
                ans++;
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            String[] input2 = br.readLine().split(" ");
            numbers[i][0] = Integer.parseInt(input2[0]);
            numbers[i][1] = Integer.parseInt(input2[1]);
            if(Math.sqrt(Math.pow(numbers[i][0], 2) + Math.pow(numbers[i][1], 2)) <= d){
                ans++;
            }
        } {
            String[] input2 = br.readLine().split(" ");
            numbers[i][0] = Integer.parseInt(input2[0]);
            numbers[i][1] = Integer.parseInt(input2[1]);
            if(Math.sqrt(Math.pow(numbers[i][0], 2) + Math.pow(numbers[i][1], 2)) <= d){
                ans++;
            }
        } String[] input2 = br.readLine().split(" "); input2 br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " numbers[i][0] = Integer.parseInt(input2[0]) numbers[i][0] numbers[i] numbers i 0 Integer.parseInt(input2[0]) Integer.parseInt Integer input2[0] input2 0 numbers[i][1] = Integer.parseInt(input2[1]) numbers[i][1] numbers[i] numbers i 1 Integer.parseInt(input2[1]) Integer.parseInt Integer input2[1] input2 1 if(Math.sqrt(Math.pow(numbers[i][0], 2) + Math.pow(numbers[i][1], 2)) <= d){
                ans++;
            } Math.sqrt(Math.pow(numbers[i][0], 2) + Math.pow(numbers[i][1], 2)) <= d Math.sqrt(Math.pow(numbers[i][0], 2) + Math.pow(numbers[i][1], 2)) Math.sqrt Math Math.pow(numbers[i][0], 2) + Math.pow(numbers[i][1], 2) Math.pow(numbers[i][0], 2) Math.pow Math numbers[i][0] numbers[i] numbers i 0 2 Math.pow(numbers[i][1], 2) Math.pow Math numbers[i][1] numbers[i] numbers i 1 2 d {
                ans++;
            } ans++ ans out.println(ans) out.println out ans out.close() out.close out String[] args args public class Main {
    public static void main(String[] args) throws Exception {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
        String[] input1 = br.readLine().split(" ");
        int n = Integer.parseInt(input1[0]);
        int d = Integer.parseInt(input1[1]);
        
        Integer[][] numbers = new Integer[n][2];
        int ans = 0;
        
        for(int i = 0; i < n; i++){
            String[] input2 = br.readLine().split(" ");
            numbers[i][0] = Integer.parseInt(input2[0]);
            numbers[i][1] = Integer.parseInt(input2[1]);
            if(Math.sqrt(Math.pow(numbers[i][0], 2) + Math.pow(numbers[i][1], 2)) <= d){
                ans++;
            }
        }
        
        out.println(ans);
        out.close();
        
    }
} public class Main {
    public static void main(String[] args) throws Exception {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
        String[] input1 = br.readLine().split(" ");
        int n = Integer.parseInt(input1[0]);
        int d = Integer.parseInt(input1[1]);
        
        Integer[][] numbers = new Integer[n][2];
        int ans = 0;
        
        for(int i = 0; i < n; i++){
            String[] input2 = br.readLine().split(" ");
            numbers[i][0] = Integer.parseInt(input2[0]);
            numbers[i][1] = Integer.parseInt(input2[1]);
            if(Math.sqrt(Math.pow(numbers[i][0], 2) + Math.pow(numbers[i][1], 2)) <= d){
                ans++;
            }
        }
        
        out.println(ans);
        out.close();
        
    }
} Main
import java.util.*;
import java.io.*;

public class Main {
    public static void main(String[] args) throws Exception {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
        String[] input1 = br.readLine().split(" ");
        int n = Integer.parseInt(input1[0]);
        int d = Integer.parseInt(input1[1]);
        
        Integer[][] numbers = new Integer[n][2];
        int ans = 0;
        
        for(int i = 0; i < n; i++){
            String[] input2 = br.readLine().split(" ");
            numbers[i][0] = Integer.parseInt(input2[0]);
            numbers[i][1] = Integer.parseInt(input2[1]);
            if(Math.sqrt(Math.pow(numbers[i][0], 2) + Math.pow(numbers[i][1], 2)) <= d){
                ans++;
            }
        }
        
        out.println(ans);
        out.close();
        
    }
}