import scala.math.sqrt
import scala.annotation.tailrec

object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val n, d = sc.nextInt()
  val xy = List.fill(n)(sc.nextDouble, sc.nextDouble)
  println(countResult(xy, 0))
    
  @tailrec
  def countResult(xy: List[(Double, Double)], acc: Int): Int = {
    val ret = if (judge(calcDistance(xy.head._1, xy.head._2), d.toDouble)) 1 else 0
    if (xy.tail.isEmpty) {
      acc + ret
    } else {
      countResult(xy.tail, acc + ret)
    }    
  }
    
  def calcDistance(x: Double, y: Double): Double = {
    sqrt(x * x  + y * y)
  }
  def judge(target: Double, credencial: Double): Boolean = target <= credencial
}