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

class Main
{
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st = new StringTokenizer(br.readLine());

        PrintWriter out = new PrintWriter(System.out);
        int n = Integer.parseInt(st.nextToken());
        double d = Double.parseDouble(st.nextToken());

        long[][] points = new long[n][2];

        for (int i=0; i<n; i++) {
            st = new StringTokenizer(br.readLine());
            points[i][0] = Long.parseLong(st.nextToken());
            points[i][1] = Long.parseLong(st.nextToken());
        }
        int ans = 0;
        for (int i=0; i<n; i++) {
            if(Math.pow(points[i][0]*points[i][0]+points[i][1]*points[i][1],0.5)<=d)
                ans++;
        }

        out.println(ans);

        out.close();
    }
    

}
 import java.util.*; util.* java import java.io.*; io.* java class Main
{
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st = new StringTokenizer(br.readLine());

        PrintWriter out = new PrintWriter(System.out);
        int n = Integer.parseInt(st.nextToken());
        double d = Double.parseDouble(st.nextToken());

        long[][] points = new long[n][2];

        for (int i=0; i<n; i++) {
            st = new StringTokenizer(br.readLine());
            points[i][0] = Long.parseLong(st.nextToken());
            points[i][1] = Long.parseLong(st.nextToken());
        }
        int ans = 0;
        for (int i=0; i<n; i++) {
            if(Math.pow(points[i][0]*points[i][0]+points[i][1]*points[i][1],0.5)<=d)
                ans++;
        }

        out.println(ans);

        out.close();
    }
    

} Main public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st = new StringTokenizer(br.readLine());

        PrintWriter out = new PrintWriter(System.out);
        int n = Integer.parseInt(st.nextToken());
        double d = Double.parseDouble(st.nextToken());

        long[][] points = new long[n][2];

        for (int i=0; i<n; i++) {
            st = new StringTokenizer(br.readLine());
            points[i][0] = Long.parseLong(st.nextToken());
            points[i][1] = Long.parseLong(st.nextToken());
        }
        int ans = 0;
        for (int i=0; i<n; i++) {
            if(Math.pow(points[i][0]*points[i][0]+points[i][1]*points[i][1],0.5)<=d)
                ans++;
        }

        out.println(ans);

        out.close();
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st = new StringTokenizer(br.readLine());

        PrintWriter out = new PrintWriter(System.out);
        int n = Integer.parseInt(st.nextToken());
        double d = Double.parseDouble(st.nextToken());

        long[][] points = new long[n][2];

        for (int i=0; i<n; i++) {
            st = new StringTokenizer(br.readLine());
            points[i][0] = Long.parseLong(st.nextToken());
            points[i][1] = Long.parseLong(st.nextToken());
        }
        int ans = 0;
        for (int i=0; i<n; i++) {
            if(Math.pow(points[i][0]*points[i][0]+points[i][1]*points[i][1],0.5)<=d)
                ans++;
        }

        out.println(ans);

        out.close();
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) StringTokenizer st = new StringTokenizer(br.readLine()); st new StringTokenizer(br.readLine()) PrintWriter out = new PrintWriter(System.out); out new PrintWriter(System.out) int n = Integer.parseInt(st.nextToken()); n Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st double d = Double.parseDouble(st.nextToken()); d Double.parseDouble(st.nextToken()) Double.parseDouble Double st.nextToken() st.nextToken st long[][] points = new long[n][2]; points new long[n][2] n 2 for (int i=0; i<n; i++) {
            st = new StringTokenizer(br.readLine());
            points[i][0] = Long.parseLong(st.nextToken());
            points[i][1] = Long.parseLong(st.nextToken());
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            st = new StringTokenizer(br.readLine());
            points[i][0] = Long.parseLong(st.nextToken());
            points[i][1] = Long.parseLong(st.nextToken());
        } {
            st = new StringTokenizer(br.readLine());
            points[i][0] = Long.parseLong(st.nextToken());
            points[i][1] = Long.parseLong(st.nextToken());
        } st = new StringTokenizer(br.readLine()) st new StringTokenizer(br.readLine()) points[i][0] = Long.parseLong(st.nextToken()) points[i][0] points[i] points i 0 Long.parseLong(st.nextToken()) Long.parseLong Long st.nextToken() st.nextToken st points[i][1] = Long.parseLong(st.nextToken()) points[i][1] points[i] points i 1 Long.parseLong(st.nextToken()) Long.parseLong Long st.nextToken() st.nextToken st int ans = 0; ans 0 for (int i=0; i<n; i++) {
            if(Math.pow(points[i][0]*points[i][0]+points[i][1]*points[i][1],0.5)<=d)
                ans++;
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            if(Math.pow(points[i][0]*points[i][0]+points[i][1]*points[i][1],0.5)<=d)
                ans++;
        } {
            if(Math.pow(points[i][0]*points[i][0]+points[i][1]*points[i][1],0.5)<=d)
                ans++;
        } if(Math.pow(points[i][0]*points[i][0]+points[i][1]*points[i][1],0.5)<=d)
                ans++; Math.pow(points[i][0]*points[i][0]+points[i][1]*points[i][1],0.5)<=d Math.pow(points[i][0]*points[i][0]+points[i][1]*points[i][1],0.5) Math.pow Math points[i][0]*points[i][0]+points[i][1]*points[i][1] points[i][0]*points[i][0] points[i][0] points[i] points i 0 points[i][0] points[i] points i 0 points[i][1]*points[i][1] points[i][1] points[i] points i 1 points[i][1] points[i] points i 1 0.5 d ans++ ans out.println(ans) out.println out ans out.close() out.close out String[] args args
import java.util.*;
import java.io.*;

class Main
{
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st = new StringTokenizer(br.readLine());

        PrintWriter out = new PrintWriter(System.out);
        int n = Integer.parseInt(st.nextToken());
        double d = Double.parseDouble(st.nextToken());

        long[][] points = new long[n][2];

        for (int i=0; i<n; i++) {
            st = new StringTokenizer(br.readLine());
            points[i][0] = Long.parseLong(st.nextToken());
            points[i][1] = Long.parseLong(st.nextToken());
        }
        int ans = 0;
        for (int i=0; i<n; i++) {
            if(Math.pow(points[i][0]*points[i][0]+points[i][1]*points[i][1],0.5)<=d)
                ans++;
        }

        out.println(ans);

        out.close();
    }
    

}

