object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val n, d = sc.nextInt()
  val xy = Array.fill(n)(sc.nextInt, sc.nextInt)
  println(xy.count(distance(_) <= d))

  def distance(v:(Int, Int)) = {
    import scala.math.pow
    import scala.math.sqrt
    sqrt(pow(v._1, 2) + pow(v._2, 2))
  }
}
