import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b=sc.nextInt();
        int temp=0;
        for(int i=0;i<a;i++){
               int c=sc.nextInt();
               int d=sc.nextInt();
               double e=Math.sqrt(Math.pow(c,2)+Math.pow(d,2));
               if(b>=e){
                   temp++;
               }
        }
        System.out.println(temp);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b=sc.nextInt();
        int temp=0;
        for(int i=0;i<a;i++){
               int c=sc.nextInt();
               int d=sc.nextInt();
               double e=Math.sqrt(Math.pow(c,2)+Math.pow(d,2));
               if(b>=e){
                   temp++;
               }
        }
        System.out.println(temp);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b=sc.nextInt();
        int temp=0;
        for(int i=0;i<a;i++){
               int c=sc.nextInt();
               int d=sc.nextInt();
               double e=Math.sqrt(Math.pow(c,2)+Math.pow(d,2));
               if(b>=e){
                   temp++;
               }
        }
        System.out.println(temp);
    } main {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b=sc.nextInt();
        int temp=0;
        for(int i=0;i<a;i++){
               int c=sc.nextInt();
               int d=sc.nextInt();
               double e=Math.sqrt(Math.pow(c,2)+Math.pow(d,2));
               if(b>=e){
                   temp++;
               }
        }
        System.out.println(temp);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b=sc.nextInt(); b sc.nextInt() sc.nextInt sc int temp=0; temp 0 for(int i=0;i<a;i++){
               int c=sc.nextInt();
               int d=sc.nextInt();
               double e=Math.sqrt(Math.pow(c,2)+Math.pow(d,2));
               if(b>=e){
                   temp++;
               }
        } int i=0; int i=0; i 0 i<a i a i++ i++ i {
               int c=sc.nextInt();
               int d=sc.nextInt();
               double e=Math.sqrt(Math.pow(c,2)+Math.pow(d,2));
               if(b>=e){
                   temp++;
               }
        } {
               int c=sc.nextInt();
               int d=sc.nextInt();
               double e=Math.sqrt(Math.pow(c,2)+Math.pow(d,2));
               if(b>=e){
                   temp++;
               }
        } int c=sc.nextInt(); c sc.nextInt() sc.nextInt sc int d=sc.nextInt(); d sc.nextInt() sc.nextInt sc double e=Math.sqrt(Math.pow(c,2)+Math.pow(d,2)); e Math.sqrt(Math.pow(c,2)+Math.pow(d,2)) Math.sqrt Math Math.pow(c,2)+Math.pow(d,2) Math.pow(c,2) Math.pow Math c 2 Math.pow(d,2) Math.pow Math d 2 if(b>=e){
                   temp++;
               } b>=e b e {
                   temp++;
               } temp++ temp System.out.println(temp) System.out.println System.out System System.out temp String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b=sc.nextInt();
        int temp=0;
        for(int i=0;i<a;i++){
               int c=sc.nextInt();
               int d=sc.nextInt();
               double e=Math.sqrt(Math.pow(c,2)+Math.pow(d,2));
               if(b>=e){
                   temp++;
               }
        }
        System.out.println(temp);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b=sc.nextInt();
        int temp=0;
        for(int i=0;i<a;i++){
               int c=sc.nextInt();
               int d=sc.nextInt();
               double e=Math.sqrt(Math.pow(c,2)+Math.pow(d,2));
               if(b>=e){
                   temp++;
               }
        }
        System.out.println(temp);
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b=sc.nextInt();
        int temp=0;
        for(int i=0;i<a;i++){
               int c=sc.nextInt();
               int d=sc.nextInt();
               double e=Math.sqrt(Math.pow(c,2)+Math.pow(d,2));
               if(b>=e){
                   temp++;
               }
        }
        System.out.println(temp);
    }
}
