import java.io.BufferedReader;
import java.io.*;
import java.util.*;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Collections;
import java.util.Arrays;

public class Main {
	public static void main(final String[] args){
    
    final Scanner sc = new Scanner(System.in);
    final List<Long> list = new ArrayList<>();
    final List<Long> list2 = new ArrayList<>();
    int n = sc.nextInt();
    long d = sc.nextLong();
    int count = 0;
    long dis = 0;
    long d2 = d*d;

    for(int i = 0; i < n ; i++){
        list.add(sc.nextLong());
        list2.add(sc.nextLong());
    }

    for(int i = 0; i < n ; i++){
        dis = list.get(i) * list.get(i) + list2.get(i) * list2.get(i);
        if(dis <= d2){
            count++;
        }
        //System.out.println(dis + " " + d2);
    }

    System.out.println(count);

    
    






}
} import java.io.BufferedReader; BufferedReader java.io import java.io.*; io.* java import java.util.*; util.* java import java.util.ArrayList; ArrayList java.util import java.util.Iterator; Iterator java.util import java.util.List; List java.util import java.util.Collections; Collections java.util import java.util.Arrays; Arrays java.util public class Main {
	public static void main(final String[] args){
    
    final Scanner sc = new Scanner(System.in);
    final List<Long> list = new ArrayList<>();
    final List<Long> list2 = new ArrayList<>();
    int n = sc.nextInt();
    long d = sc.nextLong();
    int count = 0;
    long dis = 0;
    long d2 = d*d;

    for(int i = 0; i < n ; i++){
        list.add(sc.nextLong());
        list2.add(sc.nextLong());
    }

    for(int i = 0; i < n ; i++){
        dis = list.get(i) * list.get(i) + list2.get(i) * list2.get(i);
        if(dis <= d2){
            count++;
        }
        //System.out.println(dis + " " + d2);
    }

    System.out.println(count);

    
    






}
} Main public static void main(final String[] args){
    
    final Scanner sc = new Scanner(System.in);
    final List<Long> list = new ArrayList<>();
    final List<Long> list2 = new ArrayList<>();
    int n = sc.nextInt();
    long d = sc.nextLong();
    int count = 0;
    long dis = 0;
    long d2 = d*d;

    for(int i = 0; i < n ; i++){
        list.add(sc.nextLong());
        list2.add(sc.nextLong());
    }

    for(int i = 0; i < n ; i++){
        dis = list.get(i) * list.get(i) + list2.get(i) * list2.get(i);
        if(dis <= d2){
            count++;
        }
        //System.out.println(dis + " " + d2);
    }

    System.out.println(count);

    
    






} main {
    
    final Scanner sc = new Scanner(System.in);
    final List<Long> list = new ArrayList<>();
    final List<Long> list2 = new ArrayList<>();
    int n = sc.nextInt();
    long d = sc.nextLong();
    int count = 0;
    long dis = 0;
    long d2 = d*d;

    for(int i = 0; i < n ; i++){
        list.add(sc.nextLong());
        list2.add(sc.nextLong());
    }

    for(int i = 0; i < n ; i++){
        dis = list.get(i) * list.get(i) + list2.get(i) * list2.get(i);
        if(dis <= d2){
            count++;
        }
        //System.out.println(dis + " " + d2);
    }

    System.out.println(count);

    
    






} final Scanner sc = new Scanner(System.in); sc new Scanner(System.in) final List<Long> list = new ArrayList<>(); list new ArrayList<>() final List<Long> list2 = new ArrayList<>(); list2 new ArrayList<>() int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc long d = sc.nextLong(); d sc.nextLong() sc.nextLong sc int count = 0; count 0 long dis = 0; dis 0 long d2 = d*d; d2 d*d d d for(int i = 0; i < n ; i++){
        list.add(sc.nextLong());
        list2.add(sc.nextLong());
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
        list.add(sc.nextLong());
        list2.add(sc.nextLong());
    } {
        list.add(sc.nextLong());
        list2.add(sc.nextLong());
    } list.add(sc.nextLong()) list.add list sc.nextLong() sc.nextLong sc list2.add(sc.nextLong()) list2.add list2 sc.nextLong() sc.nextLong sc for(int i = 0; i < n ; i++){
        dis = list.get(i) * list.get(i) + list2.get(i) * list2.get(i);
        if(dis <= d2){
            count++;
        }
        //System.out.println(dis + " " + d2);
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
        dis = list.get(i) * list.get(i) + list2.get(i) * list2.get(i);
        if(dis <= d2){
            count++;
        }
        //System.out.println(dis + " " + d2);
    } {
        dis = list.get(i) * list.get(i) + list2.get(i) * list2.get(i);
        if(dis <= d2){
            count++;
        }
        //System.out.println(dis + " " + d2);
    } dis = list.get(i) * list.get(i) + list2.get(i) * list2.get(i) dis list.get(i) * list.get(i) + list2.get(i) * list2.get(i) list.get(i) * list.get(i) list.get(i) list.get list i list.get(i) list.get list i list2.get(i) * list2.get(i) list2.get(i) list2.get list2 i list2.get(i) list2.get list2 i if(dis <= d2){
            count++;
        } dis <= d2 dis d2 {
            count++;
        } count++ count System.out.println(count) System.out.println System.out System System.out count final String[] args args public class Main {
	public static void main(final String[] args){
    
    final Scanner sc = new Scanner(System.in);
    final List<Long> list = new ArrayList<>();
    final List<Long> list2 = new ArrayList<>();
    int n = sc.nextInt();
    long d = sc.nextLong();
    int count = 0;
    long dis = 0;
    long d2 = d*d;

    for(int i = 0; i < n ; i++){
        list.add(sc.nextLong());
        list2.add(sc.nextLong());
    }

    for(int i = 0; i < n ; i++){
        dis = list.get(i) * list.get(i) + list2.get(i) * list2.get(i);
        if(dis <= d2){
            count++;
        }
        //System.out.println(dis + " " + d2);
    }

    System.out.println(count);

    
    






}
} public class Main {
	public static void main(final String[] args){
    
    final Scanner sc = new Scanner(System.in);
    final List<Long> list = new ArrayList<>();
    final List<Long> list2 = new ArrayList<>();
    int n = sc.nextInt();
    long d = sc.nextLong();
    int count = 0;
    long dis = 0;
    long d2 = d*d;

    for(int i = 0; i < n ; i++){
        list.add(sc.nextLong());
        list2.add(sc.nextLong());
    }

    for(int i = 0; i < n ; i++){
        dis = list.get(i) * list.get(i) + list2.get(i) * list2.get(i);
        if(dis <= d2){
            count++;
        }
        //System.out.println(dis + " " + d2);
    }

    System.out.println(count);

    
    






}
} Main
import java.io.BufferedReader;
import java.io.*;
import java.util.*;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Collections;
import java.util.Arrays;

public class Main {
	public static void main(final String[] args){
    
    final Scanner sc = new Scanner(System.in);
    final List<Long> list = new ArrayList<>();
    final List<Long> list2 = new ArrayList<>();
    int n = sc.nextInt();
    long d = sc.nextLong();
    int count = 0;
    long dis = 0;
    long d2 = d*d;

    for(int i = 0; i < n ; i++){
        list.add(sc.nextLong());
        list2.add(sc.nextLong());
    }

    for(int i = 0; i < n ; i++){
        dis = list.get(i) * list.get(i) + list2.get(i) * list2.get(i);
        if(dis <= d2){
            count++;
        }
        //System.out.println(dis + " " + d2);
    }

    System.out.println(count);

    
    






}
}