
import kotlin.math.sqrt

fun main() {
//    a()
    b()
}

fun b() {
    val (n, d) = readLine()!!.split(" ").map(String::toInt)
    var result = 0
    for (i in 0 until n) {
        val (x, y) = readLine()!!.split(" ").map(String::toDouble)
        if (d >= sqrt(x * x + y * y)) result++
    }
    println(result)
}

fun a() {
    val x = readLine()!!.toInt()
    if (x >= 30) {
        println("Yes")
    } else {
        println("No")
    }
}



