import scala.math

object Main extends App {
  def Y(swich: Int): Unit ={
    println(if(swich == 1) "Yes" else "No")
  }

  val sc = new java.util.Scanner(System.in)
  var n, d = sc.nextInt()
  var x:Array[Array[Double]] = Array.fill(n,2)(sc.nextDouble())
  var ans = 0
  for (i <- 0 until n){
    if (math.pow(x(i)(0) * x(i)(0) + (x(i)(1) * x(i)(1)),0.5) <= d ) ans += 1
  }
  println(ans)
}
