import java.io.BufferedReader
import java.io.InputStreamReader

fun main() {
    val jin = BufferedReader(InputStreamReader(System.`in`))
    val (n, d) = jin.readLine().split(" ").map { it.toLong() }
    var answer = 0
    for (j in 1..n) {
        val (x, y) = jin.readLine().split(" ").map { it.toLong() }
        if ((x * x) + (y * y) <= d * d) {
            answer++
        }
    }
    println(answer)
}