
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.util.StringTokenizer;


public class Main {
    FastIO io = new FastIO("in.txt");
    
    long N, D;

    public void main() throws Exception {
        N = io.nextLong(); D=  io.nextLong();
        long ans = 0;
        for(int i=0; i<N; i++){
            long x, y;
            x = io.nextLong(); y = io.nextLong();
            long d = x*x + y * y;
            if(d <= D*D){
                ans++;
            }
        }
        io.out(ans + "\n");
    }

    public static void main(String[] args) throws Exception {
        Main task = new Main();
        task.main();
    }

    class FastIO {
        BufferedReader br;
        StringTokenizer sk;

        public FastIO(String fname){
            try{
                File f = new File(fname);
                if(f.exists()) {
                    System.setIn(new FileInputStream(fname));
                }

            }catch (Exception e){
                throw new IllegalArgumentException(e);
            }

            br = new BufferedReader(new InputStreamReader(System.in));
        }

        public FastIO(){
            br = new BufferedReader(new InputStreamReader(System.in));
        }

        String next(){
            while(sk==null || !sk.hasMoreElements()){
                try {
                    sk = new StringTokenizer(br.readLine());
                }catch (Exception e){
                    throw new IllegalArgumentException(e);
                }
            }
            return sk.nextToken();
        }

        public int nextInt(){
            return Integer.parseInt(next());
        }

        public char nextChar(){
            return next().charAt(0);
        }

        public long nextLong(){
            return Long.parseLong(next());
        }

        public double nextDouble(){
            return Double.parseDouble(next());
        }

        public String nextLine(){
            String str = "";
            try {
                str = br.readLine();
            }catch (Exception e){
                e.printStackTrace();
            }
            return str;
        }

        public void out(String v){
            System.out.print(v);
        }

        public void out(int v) {
            System.out.print(v);
        }

        public void out(long v){
            System.out.print(v);
        }

        public void out(double v) {
            System.out.print(v);
        }
    }
}
 import java.io.BufferedReader; BufferedReader java.io import java.io.File; File java.io import java.io.FileInputStream; FileInputStream java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.StringTokenizer; StringTokenizer java.util public class Main {
    FastIO io = new FastIO("in.txt");
    
    long N, D;

    public void main() throws Exception {
        N = io.nextLong(); D=  io.nextLong();
        long ans = 0;
        for(int i=0; i<N; i++){
            long x, y;
            x = io.nextLong(); y = io.nextLong();
            long d = x*x + y * y;
            if(d <= D*D){
                ans++;
            }
        }
        io.out(ans + "\n");
    }

    public static void main(String[] args) throws Exception {
        Main task = new Main();
        task.main();
    }

    class FastIO {
        BufferedReader br;
        StringTokenizer sk;

        public FastIO(String fname){
            try{
                File f = new File(fname);
                if(f.exists()) {
                    System.setIn(new FileInputStream(fname));
                }

            }catch (Exception e){
                throw new IllegalArgumentException(e);
            }

            br = new BufferedReader(new InputStreamReader(System.in));
        }

        public FastIO(){
            br = new BufferedReader(new InputStreamReader(System.in));
        }

        String next(){
            while(sk==null || !sk.hasMoreElements()){
                try {
                    sk = new StringTokenizer(br.readLine());
                }catch (Exception e){
                    throw new IllegalArgumentException(e);
                }
            }
            return sk.nextToken();
        }

        public int nextInt(){
            return Integer.parseInt(next());
        }

        public char nextChar(){
            return next().charAt(0);
        }

        public long nextLong(){
            return Long.parseLong(next());
        }

        public double nextDouble(){
            return Double.parseDouble(next());
        }

        public String nextLine(){
            String str = "";
            try {
                str = br.readLine();
            }catch (Exception e){
                e.printStackTrace();
            }
            return str;
        }

        public void out(String v){
            System.out.print(v);
        }

        public void out(int v) {
            System.out.print(v);
        }

        public void out(long v){
            System.out.print(v);
        }

        public void out(double v) {
            System.out.print(v);
        }
    }
} Main FastIO io = new FastIO("in.txt"); io new FastIO("in.txt") long N N D; D public void main() throws Exception {
        N = io.nextLong(); D=  io.nextLong();
        long ans = 0;
        for(int i=0; i<N; i++){
            long x, y;
            x = io.nextLong(); y = io.nextLong();
            long d = x*x + y * y;
            if(d <= D*D){
                ans++;
            }
        }
        io.out(ans + "\n");
    } main {
        N = io.nextLong(); D=  io.nextLong();
        long ans = 0;
        for(int i=0; i<N; i++){
            long x, y;
            x = io.nextLong(); y = io.nextLong();
            long d = x*x + y * y;
            if(d <= D*D){
                ans++;
            }
        }
        io.out(ans + "\n");
    } N = io.nextLong() N io.nextLong() io.nextLong io D=  io.nextLong() D io.nextLong() io.nextLong io long ans = 0; ans 0 for(int i=0; i<N; i++){
            long x, y;
            x = io.nextLong(); y = io.nextLong();
            long d = x*x + y * y;
            if(d <= D*D){
                ans++;
            }
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            long x, y;
            x = io.nextLong(); y = io.nextLong();
            long d = x*x + y * y;
            if(d <= D*D){
                ans++;
            }
        } {
            long x, y;
            x = io.nextLong(); y = io.nextLong();
            long d = x*x + y * y;
            if(d <= D*D){
                ans++;
            }
        } long x x y; y x = io.nextLong() x io.nextLong() io.nextLong io y = io.nextLong() y io.nextLong() io.nextLong io long d = x*x + y * y; d x*x + y * y x*x x x y * y y y if(d <= D*D){
                ans++;
            } d <= D*D d D*D D D {
                ans++;
            } ans++ ans io.out(ans + "\n") io.out io ans + "\n" ans "\n" public static void main(String[] args) throws Exception {
        Main task = new Main();
        task.main();
    } main {
        Main task = new Main();
        task.main();
    } Main task = new Main(); task new Main() task.main() task.main task String[] args args class FastIO {
        BufferedReader br;
        StringTokenizer sk;

        public FastIO(String fname){
            try{
                File f = new File(fname);
                if(f.exists()) {
                    System.setIn(new FileInputStream(fname));
                }

            }catch (Exception e){
                throw new IllegalArgumentException(e);
            }

            br = new BufferedReader(new InputStreamReader(System.in));
        }

        public FastIO(){
            br = new BufferedReader(new InputStreamReader(System.in));
        }

        String next(){
            while(sk==null || !sk.hasMoreElements()){
                try {
                    sk = new StringTokenizer(br.readLine());
                }catch (Exception e){
                    throw new IllegalArgumentException(e);
                }
            }
            return sk.nextToken();
        }

        public int nextInt(){
            return Integer.parseInt(next());
        }

        public char nextChar(){
            return next().charAt(0);
        }

        public long nextLong(){
            return Long.parseLong(next());
        }

        public double nextDouble(){
            return Double.parseDouble(next());
        }

        public String nextLine(){
            String str = "";
            try {
                str = br.readLine();
            }catch (Exception e){
                e.printStackTrace();
            }
            return str;
        }

        public void out(String v){
            System.out.print(v);
        }

        public void out(int v) {
            System.out.print(v);
        }

        public void out(long v){
            System.out.print(v);
        }

        public void out(double v) {
            System.out.print(v);
        }
    } FastIO BufferedReader br; br StringTokenizer sk; sk public FastIO(String fname){
            try{
                File f = new File(fname);
                if(f.exists()) {
                    System.setIn(new FileInputStream(fname));
                }

            }catch (Exception e){
                throw new IllegalArgumentException(e);
            }

            br = new BufferedReader(new InputStreamReader(System.in));
        } FastIO {
            try{
                File f = new File(fname);
                if(f.exists()) {
                    System.setIn(new FileInputStream(fname));
                }

            }catch (Exception e){
                throw new IllegalArgumentException(e);
            }

            br = new BufferedReader(new InputStreamReader(System.in));
        } try{
                File f = new File(fname);
                if(f.exists()) {
                    System.setIn(new FileInputStream(fname));
                }

            }catch (Exception e){
                throw new IllegalArgumentException(e);
            } catch (Exception e){
                throw new IllegalArgumentException(e);
            } Exception e {
                throw new IllegalArgumentException(e);
            } throw new IllegalArgumentException(e); new IllegalArgumentException(e) {
                File f = new File(fname);
                if(f.exists()) {
                    System.setIn(new FileInputStream(fname));
                }

            } File f = new File(fname); f new File(fname) if(f.exists()) {
                    System.setIn(new FileInputStream(fname));
                } f.exists() f.exists f {
                    System.setIn(new FileInputStream(fname));
                } System.setIn(new FileInputStream(fname)) System.setIn System new FileInputStream(fname) br = new BufferedReader(new InputStreamReader(System.in)) br new BufferedReader(new InputStreamReader(System.in)) String fname fname public FastIO(){
            br = new BufferedReader(new InputStreamReader(System.in));
        } FastIO {
            br = new BufferedReader(new InputStreamReader(System.in));
        } br = new BufferedReader(new InputStreamReader(System.in)) br new BufferedReader(new InputStreamReader(System.in)) String next(){
            while(sk==null || !sk.hasMoreElements()){
                try {
                    sk = new StringTokenizer(br.readLine());
                }catch (Exception e){
                    throw new IllegalArgumentException(e);
                }
            }
            return sk.nextToken();
        } next {
            while(sk==null || !sk.hasMoreElements()){
                try {
                    sk = new StringTokenizer(br.readLine());
                }catch (Exception e){
                    throw new IllegalArgumentException(e);
                }
            }
            return sk.nextToken();
        } while(sk==null || !sk.hasMoreElements()){
                try {
                    sk = new StringTokenizer(br.readLine());
                }catch (Exception e){
                    throw new IllegalArgumentException(e);
                }
            } sk==null || !sk.hasMoreElements() sk==null sk null !sk.hasMoreElements() sk.hasMoreElements() sk.hasMoreElements sk {
                try {
                    sk = new StringTokenizer(br.readLine());
                }catch (Exception e){
                    throw new IllegalArgumentException(e);
                }
            } try {
                    sk = new StringTokenizer(br.readLine());
                }catch (Exception e){
                    throw new IllegalArgumentException(e);
                } catch (Exception e){
                    throw new IllegalArgumentException(e);
                } Exception e {
                    throw new IllegalArgumentException(e);
                } throw new IllegalArgumentException(e); new IllegalArgumentException(e) {
                    sk = new StringTokenizer(br.readLine());
                } sk = new StringTokenizer(br.readLine()) sk new StringTokenizer(br.readLine()) return sk.nextToken(); sk.nextToken() sk.nextToken sk public int nextInt(){
            return Integer.parseInt(next());
        } nextInt {
            return Integer.parseInt(next());
        } return Integer.parseInt(next()); Integer.parseInt(next()) Integer.parseInt Integer next() next public char nextChar(){
            return next().charAt(0);
        } nextChar {
            return next().charAt(0);
        } return next().charAt(0); next().charAt(0) next().charAt next() next 0 public long nextLong(){
            return Long.parseLong(next());
        } nextLong {
            return Long.parseLong(next());
        } return Long.parseLong(next()); Long.parseLong(next()) Long.parseLong Long next() next public double nextDouble(){
            return Double.parseDouble(next());
        } nextDouble {
            return Double.parseDouble(next());
        } return Double.parseDouble(next()); Double.parseDouble(next()) Double.parseDouble Double next() next public String nextLine(){
            String str = "";
            try {
                str = br.readLine();
            }catch (Exception e){
                e.printStackTrace();
            }
            return str;
        } nextLine {
            String str = "";
            try {
                str = br.readLine();
            }catch (Exception e){
                e.printStackTrace();
            }
            return str;
        } String str = ""; str "" try {
                str = br.readLine();
            }catch (Exception e){
                e.printStackTrace();
            } catch (Exception e){
                e.printStackTrace();
            } Exception e {
                e.printStackTrace();
            } e.printStackTrace() e.printStackTrace e {
                str = br.readLine();
            } str = br.readLine() str br.readLine() br.readLine br return str; str public void out(String v){
            System.out.print(v);
        } out {
            System.out.print(v);
        } System.out.print(v) System.out.print System.out System System.out v String v v public void out(int v) {
            System.out.print(v);
        } out {
            System.out.print(v);
        } System.out.print(v) System.out.print System.out System System.out v int v v public void out(long v){
            System.out.print(v);
        } out {
            System.out.print(v);
        } System.out.print(v) System.out.print System.out System System.out v long v v public void out(double v) {
            System.out.print(v);
        } out {
            System.out.print(v);
        } System.out.print(v) System.out.print System.out System System.out v double v v public class Main {
    FastIO io = new FastIO("in.txt");
    
    long N, D;

    public void main() throws Exception {
        N = io.nextLong(); D=  io.nextLong();
        long ans = 0;
        for(int i=0; i<N; i++){
            long x, y;
            x = io.nextLong(); y = io.nextLong();
            long d = x*x + y * y;
            if(d <= D*D){
                ans++;
            }
        }
        io.out(ans + "\n");
    }

    public static void main(String[] args) throws Exception {
        Main task = new Main();
        task.main();
    }

    class FastIO {
        BufferedReader br;
        StringTokenizer sk;

        public FastIO(String fname){
            try{
                File f = new File(fname);
                if(f.exists()) {
                    System.setIn(new FileInputStream(fname));
                }

            }catch (Exception e){
                throw new IllegalArgumentException(e);
            }

            br = new BufferedReader(new InputStreamReader(System.in));
        }

        public FastIO(){
            br = new BufferedReader(new InputStreamReader(System.in));
        }

        String next(){
            while(sk==null || !sk.hasMoreElements()){
                try {
                    sk = new StringTokenizer(br.readLine());
                }catch (Exception e){
                    throw new IllegalArgumentException(e);
                }
            }
            return sk.nextToken();
        }

        public int nextInt(){
            return Integer.parseInt(next());
        }

        public char nextChar(){
            return next().charAt(0);
        }

        public long nextLong(){
            return Long.parseLong(next());
        }

        public double nextDouble(){
            return Double.parseDouble(next());
        }

        public String nextLine(){
            String str = "";
            try {
                str = br.readLine();
            }catch (Exception e){
                e.printStackTrace();
            }
            return str;
        }

        public void out(String v){
            System.out.print(v);
        }

        public void out(int v) {
            System.out.print(v);
        }

        public void out(long v){
            System.out.print(v);
        }

        public void out(double v) {
            System.out.print(v);
        }
    }
} public class Main {
    FastIO io = new FastIO("in.txt");
    
    long N, D;

    public void main() throws Exception {
        N = io.nextLong(); D=  io.nextLong();
        long ans = 0;
        for(int i=0; i<N; i++){
            long x, y;
            x = io.nextLong(); y = io.nextLong();
            long d = x*x + y * y;
            if(d <= D*D){
                ans++;
            }
        }
        io.out(ans + "\n");
    }

    public static void main(String[] args) throws Exception {
        Main task = new Main();
        task.main();
    }

    class FastIO {
        BufferedReader br;
        StringTokenizer sk;

        public FastIO(String fname){
            try{
                File f = new File(fname);
                if(f.exists()) {
                    System.setIn(new FileInputStream(fname));
                }

            }catch (Exception e){
                throw new IllegalArgumentException(e);
            }

            br = new BufferedReader(new InputStreamReader(System.in));
        }

        public FastIO(){
            br = new BufferedReader(new InputStreamReader(System.in));
        }

        String next(){
            while(sk==null || !sk.hasMoreElements()){
                try {
                    sk = new StringTokenizer(br.readLine());
                }catch (Exception e){
                    throw new IllegalArgumentException(e);
                }
            }
            return sk.nextToken();
        }

        public int nextInt(){
            return Integer.parseInt(next());
        }

        public char nextChar(){
            return next().charAt(0);
        }

        public long nextLong(){
            return Long.parseLong(next());
        }

        public double nextDouble(){
            return Double.parseDouble(next());
        }

        public String nextLine(){
            String str = "";
            try {
                str = br.readLine();
            }catch (Exception e){
                e.printStackTrace();
            }
            return str;
        }

        public void out(String v){
            System.out.print(v);
        }

        public void out(int v) {
            System.out.print(v);
        }

        public void out(long v){
            System.out.print(v);
        }

        public void out(double v) {
            System.out.print(v);
        }
    }
} Main

import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.util.StringTokenizer;


public class Main {
    FastIO io = new FastIO("in.txt");
    
    long N, D;

    public void main() throws Exception {
        N = io.nextLong(); D=  io.nextLong();
        long ans = 0;
        for(int i=0; i<N; i++){
            long x, y;
            x = io.nextLong(); y = io.nextLong();
            long d = x*x + y * y;
            if(d <= D*D){
                ans++;
            }
        }
        io.out(ans + "\n");
    }

    public static void main(String[] args) throws Exception {
        Main task = new Main();
        task.main();
    }

    class FastIO {
        BufferedReader br;
        StringTokenizer sk;

        public FastIO(String fname){
            try{
                File f = new File(fname);
                if(f.exists()) {
                    System.setIn(new FileInputStream(fname));
                }

            }catch (Exception e){
                throw new IllegalArgumentException(e);
            }

            br = new BufferedReader(new InputStreamReader(System.in));
        }

        public FastIO(){
            br = new BufferedReader(new InputStreamReader(System.in));
        }

        String next(){
            while(sk==null || !sk.hasMoreElements()){
                try {
                    sk = new StringTokenizer(br.readLine());
                }catch (Exception e){
                    throw new IllegalArgumentException(e);
                }
            }
            return sk.nextToken();
        }

        public int nextInt(){
            return Integer.parseInt(next());
        }

        public char nextChar(){
            return next().charAt(0);
        }

        public long nextLong(){
            return Long.parseLong(next());
        }

        public double nextDouble(){
            return Double.parseDouble(next());
        }

        public String nextLine(){
            String str = "";
            try {
                str = br.readLine();
            }catch (Exception e){
                e.printStackTrace();
            }
            return str;
        }

        public void out(String v){
            System.out.print(v);
        }

        public void out(int v) {
            System.out.print(v);
        }

        public void out(long v){
            System.out.print(v);
        }

        public void out(double v) {
            System.out.print(v);
        }
    }
}

