import kotlin.math.sqrt

fun main(args: Array<String>) {
    val s = readLine()!!.split(" ").filter { it != "" }
    val n = s[0].toInt()
    val d = s[1].toInt()

    var c = 0
    for (i in 1..n) {
        val xy = readLine()!!.split(" ").filter { it != "" }
        val x = xy[0].toDouble()
        val y = xy[1].toDouble()
        val dis = sqrt(x * x + y * y)
        if (dis <= d) c++
    }
    println(c)
}