
import Foundation

let input = readLine()!.components(separatedBy: " ").map{ Int($0)! }
let N = input[0]
let D = input[1]
let distance = D * D
var count = 0
for i in 1...N {
    let inputs = readLine()!.components(separatedBy: " ").map{ Int($0)! }
    if distance >= inputs[0] * inputs[0] + inputs[1] * inputs[1]{
        count += 1
    }
}
    print(count)