import java.util.Scanner;

public class Main{
 public static void main(String[] args) {
   Scanner kbd =new Scanner(System.in);
   int n=kbd.nextInt();
   int d=kbd.nextInt();
   int num=0;
   for(int i=0;i<n;i++){
   long x=kbd.nextInt();
   long y=kbd.nextInt();
   if(Math.sqrt(x*x+y*y)<=d){
   num++;
 }
}
 System.out.println(num);
}
} import java.util.Scanner; Scanner java.util public class Main{
 public static void main(String[] args) {
   Scanner kbd =new Scanner(System.in);
   int n=kbd.nextInt();
   int d=kbd.nextInt();
   int num=0;
   for(int i=0;i<n;i++){
   long x=kbd.nextInt();
   long y=kbd.nextInt();
   if(Math.sqrt(x*x+y*y)<=d){
   num++;
 }
}
 System.out.println(num);
}
} Main public static void main(String[] args) {
   Scanner kbd =new Scanner(System.in);
   int n=kbd.nextInt();
   int d=kbd.nextInt();
   int num=0;
   for(int i=0;i<n;i++){
   long x=kbd.nextInt();
   long y=kbd.nextInt();
   if(Math.sqrt(x*x+y*y)<=d){
   num++;
 }
}
 System.out.println(num);
} main {
   Scanner kbd =new Scanner(System.in);
   int n=kbd.nextInt();
   int d=kbd.nextInt();
   int num=0;
   for(int i=0;i<n;i++){
   long x=kbd.nextInt();
   long y=kbd.nextInt();
   if(Math.sqrt(x*x+y*y)<=d){
   num++;
 }
}
 System.out.println(num);
} Scanner kbd =new Scanner(System.in); kbd new Scanner(System.in) int n=kbd.nextInt(); n kbd.nextInt() kbd.nextInt kbd int d=kbd.nextInt(); d kbd.nextInt() kbd.nextInt kbd int num=0; num 0 for(int i=0;i<n;i++){
   long x=kbd.nextInt();
   long y=kbd.nextInt();
   if(Math.sqrt(x*x+y*y)<=d){
   num++;
 }
} int i=0; int i=0; i 0 i<n i n i++ i++ i {
   long x=kbd.nextInt();
   long y=kbd.nextInt();
   if(Math.sqrt(x*x+y*y)<=d){
   num++;
 }
} {
   long x=kbd.nextInt();
   long y=kbd.nextInt();
   if(Math.sqrt(x*x+y*y)<=d){
   num++;
 }
} long x=kbd.nextInt(); x kbd.nextInt() kbd.nextInt kbd long y=kbd.nextInt(); y kbd.nextInt() kbd.nextInt kbd if(Math.sqrt(x*x+y*y)<=d){
   num++;
 } Math.sqrt(x*x+y*y)<=d Math.sqrt(x*x+y*y) Math.sqrt Math x*x+y*y x*x x x y*y y y d {
   num++;
 } num++ num System.out.println(num) System.out.println System.out System System.out num String[] args args public class Main{
 public static void main(String[] args) {
   Scanner kbd =new Scanner(System.in);
   int n=kbd.nextInt();
   int d=kbd.nextInt();
   int num=0;
   for(int i=0;i<n;i++){
   long x=kbd.nextInt();
   long y=kbd.nextInt();
   if(Math.sqrt(x*x+y*y)<=d){
   num++;
 }
}
 System.out.println(num);
}
} public class Main{
 public static void main(String[] args) {
   Scanner kbd =new Scanner(System.in);
   int n=kbd.nextInt();
   int d=kbd.nextInt();
   int num=0;
   for(int i=0;i<n;i++){
   long x=kbd.nextInt();
   long y=kbd.nextInt();
   if(Math.sqrt(x*x+y*y)<=d){
   num++;
 }
}
 System.out.println(num);
}
} Main
import java.util.Scanner;

public class Main{
 public static void main(String[] args) {
   Scanner kbd =new Scanner(System.in);
   int n=kbd.nextInt();
   int d=kbd.nextInt();
   int num=0;
   for(int i=0;i<n;i++){
   long x=kbd.nextInt();
   long y=kbd.nextInt();
   if(Math.sqrt(x*x+y*y)<=d){
   num++;
 }
}
 System.out.println(num);
}
}
