import Foundation

let ND = readLine()!.split(separator: " ").compactMap { Int($0) }
let n = ND[0]
let d = ND[1]
let XYN = (1...n).map { _ in readLine()!.split(separator: " ").compactMap { Int($0) } }

var count = 0
for i in 0..<XYN.count {
    let x = Double(XYN[i][0])
    let y = Double(XYN[i][1])
    if pow(pow(x, 2) + pow(y, 2), 0.5) <= Double(d) {
        count += 1
    }
}
print(count)
