object Main {
  def main(args: Array[String]): Unit = {
    import scala.io.StdIn.readLine
    val Array(datN, datD) = readLine.split(" ").map(_.toLong)
    val datA = for(i <- 1 to datN.toInt) yield (readLine.split(" ").map(_.toLong))

    val ans = datA.filter(v => v(0) * v(0) + v(1) * v(1) <= datD * datD).length
    println(ans)
  }
}
