import java.util.*;

public class Main{
	public static void main(String args[]){
     	Scanner sc = new Scanner(System.in);
      	int n = sc.nextInt();
      	long d = sc.nextLong();
        int count = 0;
        while(n-->0){
        	long a = sc.nextLong();
            long b = sc.nextLong();
            double ans = Math.sqrt(a*a + b*b);
            if(ans<=d)
                count++;
        }
        System.out.println(count);
    }
} import java.util.*; util.* java public class Main{
	public static void main(String args[]){
     	Scanner sc = new Scanner(System.in);
      	int n = sc.nextInt();
      	long d = sc.nextLong();
        int count = 0;
        while(n-->0){
        	long a = sc.nextLong();
            long b = sc.nextLong();
            double ans = Math.sqrt(a*a + b*b);
            if(ans<=d)
                count++;
        }
        System.out.println(count);
    }
} Main public static void main(String args[]){
     	Scanner sc = new Scanner(System.in);
      	int n = sc.nextInt();
      	long d = sc.nextLong();
        int count = 0;
        while(n-->0){
        	long a = sc.nextLong();
            long b = sc.nextLong();
            double ans = Math.sqrt(a*a + b*b);
            if(ans<=d)
                count++;
        }
        System.out.println(count);
    } main {
     	Scanner sc = new Scanner(System.in);
      	int n = sc.nextInt();
      	long d = sc.nextLong();
        int count = 0;
        while(n-->0){
        	long a = sc.nextLong();
            long b = sc.nextLong();
            double ans = Math.sqrt(a*a + b*b);
            if(ans<=d)
                count++;
        }
        System.out.println(count);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) 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 while(n-->0){
        	long a = sc.nextLong();
            long b = sc.nextLong();
            double ans = Math.sqrt(a*a + b*b);
            if(ans<=d)
                count++;
        } n-->0 n-- n 0 {
        	long a = sc.nextLong();
            long b = sc.nextLong();
            double ans = Math.sqrt(a*a + b*b);
            if(ans<=d)
                count++;
        } long a = sc.nextLong(); a sc.nextLong() sc.nextLong sc long b = sc.nextLong(); b sc.nextLong() sc.nextLong sc double ans = Math.sqrt(a*a + b*b); ans Math.sqrt(a*a + b*b) Math.sqrt Math a*a + b*b a*a a a b*b b b if(ans<=d)
                count++; ans<=d ans d count++ count System.out.println(count) System.out.println System.out System System.out count String args[] args public class Main{
	public static void main(String args[]){
     	Scanner sc = new Scanner(System.in);
      	int n = sc.nextInt();
      	long d = sc.nextLong();
        int count = 0;
        while(n-->0){
        	long a = sc.nextLong();
            long b = sc.nextLong();
            double ans = Math.sqrt(a*a + b*b);
            if(ans<=d)
                count++;
        }
        System.out.println(count);
    }
} public class Main{
	public static void main(String args[]){
     	Scanner sc = new Scanner(System.in);
      	int n = sc.nextInt();
      	long d = sc.nextLong();
        int count = 0;
        while(n-->0){
        	long a = sc.nextLong();
            long b = sc.nextLong();
            double ans = Math.sqrt(a*a + b*b);
            if(ans<=d)
                count++;
        }
        System.out.println(count);
    }
} Main
import java.util.*;

public class Main{
	public static void main(String args[]){
     	Scanner sc = new Scanner(System.in);
      	int n = sc.nextInt();
      	long d = sc.nextLong();
        int count = 0;
        while(n-->0){
        	long a = sc.nextLong();
            long b = sc.nextLong();
            double ans = Math.sqrt(a*a + b*b);
            if(ans<=d)
                count++;
        }
        System.out.println(count);
    }
}
