fun main(args: Array<String>) {
    val nd = nextIntList()
    val n = nd[0]
    val d = nd[1]

    var cnt = 0
    for(i in 0 until n){

        val xy = nextIntList()
        val x = xy[0].toDouble()
        val y = xy[1].toDouble()
        val res = Math.sqrt(x*x + y*y)
      
      
      
        if(res <= d) cnt++
    }
    println(cnt)
}
fun next() = readLine()!!
fun nextIntList() = next().split(" ").map{ it.toInt() }