import java.util.*

fun main(args: Array<String>) {
  val sc = Scanner(System.`in`)
  val n = sc.nextInt()
  val d = sc.nextLong()
  val xy = (1..n).map { Pair(sc.nextLong(), sc.nextLong()) }


  val list = mutableListOf<Long>()

  for (xyi in xy) {
    val x = xyi.first
    val y = xyi.second

    val tmp = x * x + y * y
    list.add(tmp)
  }

  val size = list.filter { it <= d * d }.size
  println(size)

}
