import java.util.Scanner

object Main {
  def main(args: Array[String]): Unit = {
    val sc = new Scanner(System.in)
    val n = sc.nextInt()
    val d = sc.nextDouble()
    val list = Array.fill(n)((sc.nextLong(), sc.nextLong()))

    var cnt = 0
    list.foreach { case (x, y) =>
      val z = Math.sqrt(x * x + y * y)
      if (d >= z) cnt += 1
    }

    println(cnt)

  }
}

