import kotlin.math.pow
import kotlin.math.sqrt

fun main (){
    val (n, d) = readLine()!!.split(" ").map(String::toInt)
    var resultCount = 0
    for(i in 1..n){
        val (x, y) = readLine()!!.split(" ").map(String::toDouble)
        val xy = sqrt(x.pow(2) + y.pow(2))
        if(xy <= d) resultCount++
    }
    print(resultCount)
}