func main() {
    let input1 = readLine()!.split(separator: " ")
    let n = Int(input1[0])!
    let d = Double(input1[1])!
    
    var count = 0
    for _ in 1...n {
        let input = readLine()!.split(separator: " ")
        let x = Double(input[0])!
        let y = Double(input[1])!
        let distance = sqrt(pow(x, 2) + pow(y, 2))
        if distance <= d {
            count += 1
        }
    }
    print(count)
}

main()