

import scala.io.StdIn
import scala.math


object Main extends App {
  val n::d::_ = StdIn.readLine().split(' ').map(_.toInt).toList

  def norm(x:(Int,Int)):Double = math.sqrt(math.pow(x._1,2)+math.pow(x._2,2))

  val points = for(i <- 1 to n)yield{
    val x::y::_ = StdIn.readLine().split(' ').map(_.toInt).toList
    (x,y)
  }

  val out = points.map(norm).count(_ <= d)

  println(out)




}






