import java.util.Scanner;
public class Main
{
  public static void main (String[] args)
  {
    Scanner sc = new Scanner(System.in);
    int p = sc.nextInt();
    int q = sc.nextInt();
    int result = 0;
    
    for(int i = 0; i < p; i++)
    {
      double x1 = sc.nextDouble();
      double x2 = sc.nextDouble();
      double dis = Math.sqrt(Math.pow(x1,2) + Math.pow(x2,2));
    if(dis <= q)
      result++;
    }
    System.out.println(result);
  }
} import java.util.Scanner; Scanner java.util public class Main
{
  public static void main (String[] args)
  {
    Scanner sc = new Scanner(System.in);
    int p = sc.nextInt();
    int q = sc.nextInt();
    int result = 0;
    
    for(int i = 0; i < p; i++)
    {
      double x1 = sc.nextDouble();
      double x2 = sc.nextDouble();
      double dis = Math.sqrt(Math.pow(x1,2) + Math.pow(x2,2));
    if(dis <= q)
      result++;
    }
    System.out.println(result);
  }
} Main public static void main (String[] args)
  {
    Scanner sc = new Scanner(System.in);
    int p = sc.nextInt();
    int q = sc.nextInt();
    int result = 0;
    
    for(int i = 0; i < p; i++)
    {
      double x1 = sc.nextDouble();
      double x2 = sc.nextDouble();
      double dis = Math.sqrt(Math.pow(x1,2) + Math.pow(x2,2));
    if(dis <= q)
      result++;
    }
    System.out.println(result);
  } main {
    Scanner sc = new Scanner(System.in);
    int p = sc.nextInt();
    int q = sc.nextInt();
    int result = 0;
    
    for(int i = 0; i < p; i++)
    {
      double x1 = sc.nextDouble();
      double x2 = sc.nextDouble();
      double dis = Math.sqrt(Math.pow(x1,2) + Math.pow(x2,2));
    if(dis <= q)
      result++;
    }
    System.out.println(result);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int p = sc.nextInt(); p sc.nextInt() sc.nextInt sc int q = sc.nextInt(); q sc.nextInt() sc.nextInt sc int result = 0; result 0 for(int i = 0; i < p; i++)
    {
      double x1 = sc.nextDouble();
      double x2 = sc.nextDouble();
      double dis = Math.sqrt(Math.pow(x1,2) + Math.pow(x2,2));
    if(dis <= q)
      result++;
    } int i = 0; int i = 0; i 0 i < p i p i++ i++ i {
      double x1 = sc.nextDouble();
      double x2 = sc.nextDouble();
      double dis = Math.sqrt(Math.pow(x1,2) + Math.pow(x2,2));
    if(dis <= q)
      result++;
    } {
      double x1 = sc.nextDouble();
      double x2 = sc.nextDouble();
      double dis = Math.sqrt(Math.pow(x1,2) + Math.pow(x2,2));
    if(dis <= q)
      result++;
    } double x1 = sc.nextDouble(); x1 sc.nextDouble() sc.nextDouble sc double x2 = sc.nextDouble(); x2 sc.nextDouble() sc.nextDouble sc double dis = Math.sqrt(Math.pow(x1,2) + Math.pow(x2,2)); dis Math.sqrt(Math.pow(x1,2) + Math.pow(x2,2)) Math.sqrt Math Math.pow(x1,2) + Math.pow(x2,2) Math.pow(x1,2) Math.pow Math x1 2 Math.pow(x2,2) Math.pow Math x2 2 if(dis <= q)
      result++; dis <= q dis q result++ result System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main
{
  public static void main (String[] args)
  {
    Scanner sc = new Scanner(System.in);
    int p = sc.nextInt();
    int q = sc.nextInt();
    int result = 0;
    
    for(int i = 0; i < p; i++)
    {
      double x1 = sc.nextDouble();
      double x2 = sc.nextDouble();
      double dis = Math.sqrt(Math.pow(x1,2) + Math.pow(x2,2));
    if(dis <= q)
      result++;
    }
    System.out.println(result);
  }
} public class Main
{
  public static void main (String[] args)
  {
    Scanner sc = new Scanner(System.in);
    int p = sc.nextInt();
    int q = sc.nextInt();
    int result = 0;
    
    for(int i = 0; i < p; i++)
    {
      double x1 = sc.nextDouble();
      double x2 = sc.nextDouble();
      double dis = Math.sqrt(Math.pow(x1,2) + Math.pow(x2,2));
    if(dis <= q)
      result++;
    }
    System.out.println(result);
  }
} Main
import java.util.Scanner;
public class Main
{
  public static void main (String[] args)
  {
    Scanner sc = new Scanner(System.in);
    int p = sc.nextInt();
    int q = sc.nextInt();
    int result = 0;
    
    for(int i = 0; i < p; i++)
    {
      double x1 = sc.nextDouble();
      double x2 = sc.nextDouble();
      double dis = Math.sqrt(Math.pow(x1,2) + Math.pow(x2,2));
    if(dis <= q)
      result++;
    }
    System.out.println(result);
  }
}
