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

public class Main{
    public static void main(String[] args) throws Exception {
        BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();
        String [] inp = buffer.readLine().split(" ");
        int n = Integer.parseInt(inp[0]), maxDis = Integer.parseInt(inp[1]);
        int cnt = 0;
        for (int pos = 0; pos < n; pos++) {
            inp = buffer.readLine().split(" ");
            long x = Integer.parseInt(inp[0]), y = Integer.parseInt(inp[1]);
//            if (x*x+y*y<0)continue;
            double value = Math.sqrt((x*x)+(y*y));
            if (value<=maxDis) {
                cnt++;
            }
        }
        sb.append(cnt+"\n");
        System.out.println(sb);
    }
} import java.io.*; io.* java import java.util.*; util.* java public class Main{
    public static void main(String[] args) throws Exception {
        BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();
        String [] inp = buffer.readLine().split(" ");
        int n = Integer.parseInt(inp[0]), maxDis = Integer.parseInt(inp[1]);
        int cnt = 0;
        for (int pos = 0; pos < n; pos++) {
            inp = buffer.readLine().split(" ");
            long x = Integer.parseInt(inp[0]), y = Integer.parseInt(inp[1]);
//            if (x*x+y*y<0)continue;
            double value = Math.sqrt((x*x)+(y*y));
            if (value<=maxDis) {
                cnt++;
            }
        }
        sb.append(cnt+"\n");
        System.out.println(sb);
    }
} Main public static void main(String[] args) throws Exception {
        BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();
        String [] inp = buffer.readLine().split(" ");
        int n = Integer.parseInt(inp[0]), maxDis = Integer.parseInt(inp[1]);
        int cnt = 0;
        for (int pos = 0; pos < n; pos++) {
            inp = buffer.readLine().split(" ");
            long x = Integer.parseInt(inp[0]), y = Integer.parseInt(inp[1]);
//            if (x*x+y*y<0)continue;
            double value = Math.sqrt((x*x)+(y*y));
            if (value<=maxDis) {
                cnt++;
            }
        }
        sb.append(cnt+"\n");
        System.out.println(sb);
    } main {
        BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();
        String [] inp = buffer.readLine().split(" ");
        int n = Integer.parseInt(inp[0]), maxDis = Integer.parseInt(inp[1]);
        int cnt = 0;
        for (int pos = 0; pos < n; pos++) {
            inp = buffer.readLine().split(" ");
            long x = Integer.parseInt(inp[0]), y = Integer.parseInt(inp[1]);
//            if (x*x+y*y<0)continue;
            double value = Math.sqrt((x*x)+(y*y));
            if (value<=maxDis) {
                cnt++;
            }
        }
        sb.append(cnt+"\n");
        System.out.println(sb);
    } BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in)); buffer new BufferedReader(new InputStreamReader(System.in)) StringBuilder sb = new StringBuilder(); sb new StringBuilder() String [] inp = buffer.readLine().split(" "); inp buffer.readLine().split(" ") buffer.readLine().split buffer.readLine() buffer.readLine buffer " " int n = Integer.parseInt(inp[0]) n Integer.parseInt(inp[0]) Integer.parseInt Integer inp[0] inp 0 maxDis = Integer.parseInt(inp[1]); maxDis Integer.parseInt(inp[1]) Integer.parseInt Integer inp[1] inp 1 int cnt = 0; cnt 0 for (int pos = 0; pos < n; pos++) {
            inp = buffer.readLine().split(" ");
            long x = Integer.parseInt(inp[0]), y = Integer.parseInt(inp[1]);
//            if (x*x+y*y<0)continue;
            double value = Math.sqrt((x*x)+(y*y));
            if (value<=maxDis) {
                cnt++;
            }
        } int pos = 0; int pos = 0; pos 0 pos < n pos n pos++ pos++ pos {
            inp = buffer.readLine().split(" ");
            long x = Integer.parseInt(inp[0]), y = Integer.parseInt(inp[1]);
//            if (x*x+y*y<0)continue;
            double value = Math.sqrt((x*x)+(y*y));
            if (value<=maxDis) {
                cnt++;
            }
        } {
            inp = buffer.readLine().split(" ");
            long x = Integer.parseInt(inp[0]), y = Integer.parseInt(inp[1]);
//            if (x*x+y*y<0)continue;
            double value = Math.sqrt((x*x)+(y*y));
            if (value<=maxDis) {
                cnt++;
            }
        } inp = buffer.readLine().split(" ") inp buffer.readLine().split(" ") buffer.readLine().split buffer.readLine() buffer.readLine buffer " " long x = Integer.parseInt(inp[0]) x Integer.parseInt(inp[0]) Integer.parseInt Integer inp[0] inp 0 y = Integer.parseInt(inp[1]); y Integer.parseInt(inp[1]) Integer.parseInt Integer inp[1] inp 1 double value = Math.sqrt((x*x)+(y*y)); value Math.sqrt((x*x)+(y*y)) Math.sqrt Math (x*x)+(y*y) (x*x) x x (y*y) y y if (value<=maxDis) {
                cnt++;
            } value<=maxDis value maxDis {
                cnt++;
            } cnt++ cnt sb.append(cnt+"\n") sb.append sb cnt+"\n" cnt "\n" System.out.println(sb) System.out.println System.out System System.out sb String[] args args public class Main{
    public static void main(String[] args) throws Exception {
        BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();
        String [] inp = buffer.readLine().split(" ");
        int n = Integer.parseInt(inp[0]), maxDis = Integer.parseInt(inp[1]);
        int cnt = 0;
        for (int pos = 0; pos < n; pos++) {
            inp = buffer.readLine().split(" ");
            long x = Integer.parseInt(inp[0]), y = Integer.parseInt(inp[1]);
//            if (x*x+y*y<0)continue;
            double value = Math.sqrt((x*x)+(y*y));
            if (value<=maxDis) {
                cnt++;
            }
        }
        sb.append(cnt+"\n");
        System.out.println(sb);
    }
} public class Main{
    public static void main(String[] args) throws Exception {
        BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();
        String [] inp = buffer.readLine().split(" ");
        int n = Integer.parseInt(inp[0]), maxDis = Integer.parseInt(inp[1]);
        int cnt = 0;
        for (int pos = 0; pos < n; pos++) {
            inp = buffer.readLine().split(" ");
            long x = Integer.parseInt(inp[0]), y = Integer.parseInt(inp[1]);
//            if (x*x+y*y<0)continue;
            double value = Math.sqrt((x*x)+(y*y));
            if (value<=maxDis) {
                cnt++;
            }
        }
        sb.append(cnt+"\n");
        System.out.println(sb);
    }
} Main
import java.io.*;
import java.util.*;

public class Main{
    public static void main(String[] args) throws Exception {
        BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();
        String [] inp = buffer.readLine().split(" ");
        int n = Integer.parseInt(inp[0]), maxDis = Integer.parseInt(inp[1]);
        int cnt = 0;
        for (int pos = 0; pos < n; pos++) {
            inp = buffer.readLine().split(" ");
            long x = Integer.parseInt(inp[0]), y = Integer.parseInt(inp[1]);
//            if (x*x+y*y<0)continue;
            double value = Math.sqrt((x*x)+(y*y));
            if (value<=maxDis) {
                cnt++;
            }
        }
        sb.append(cnt+"\n");
        System.out.println(sb);
    }
}
