import Foundation

func main() {
    guard let line = readLine() else { return }
    let inputs = line.components(separatedBy: " ").compactMap() { Int($0) }
    let n = inputs[0]
    let d = inputs[1]
    var count = 0
    
    for _ in 0..<n {
        let inputs = readLine()!.components(separatedBy: " ").compactMap() { Int($0) }
        let point = Point(x: inputs[0], y: inputs[1])
        if point.isD(d: d) {
            count += 1
        }
    }
    print(count)
}
struct Point {
    let x: Int
    let y: Int
    func isD(d: Int) -> Bool {
        return sqrt(Double(self.x) * Double(self.x) + Double(self.y) * Double(self.y)) <= Double(d)
    }
}
main()