import Foundation

func readTwoInts(separator: String.Element = " ") -> (a: Int, b: Int) {
    let ints = readLine()!.split(separator: separator).map { Int($0)! }
    return (a: ints[0], b: ints[1])
}

func mainB() {
    let (N, D) = readTwoInts()

    var count = 0
    for i in 0..<N {
        let (x, y) = readTwoInts()

        if Float((x * x) + (y * y)).squareRoot() <= Float(D) {
            count += 1
        }
    }

    print(count)
}
mainB()