import scala.io.StdIn._

object Main extends App {

  val Array(n,d) = readLine().split(" ").map(_.toInt)
  val xy = Array.fill(n)(readLine().split(" ").map(_.toLong))

  def solve() = {
    xy.map { l =>
      Math.sqrt(l(0) * l(0) + l(1) * l(1))
    }.count(_ <= d)
  }

  println(solve())

}

