fun main(args: Array<String>) {
    val (N, D) = readLine()!!.split(" ").map{it.toInt()}
    val points = (1..N).map{ readLine()!!.split(" ").map { it.toDouble() }}

    fun calcDistance(p:Double, q:Double): Double = kotlin.math.sqrt((p*p + q*q))

    val result = points.filter { D >= calcDistance(it[0], it[1]) }

    println(result.count())
}