import Foundation
let input = readLine()!
let inputs: [String] = input.components(separatedBy: " ")
let times = Int(inputs[0])!
let limit = Int(inputs[1])!
var count: Int = 0
for _ in 0..<times {
  let xy = readLine()!
  let x = Int(x)!
  let y = Int(y)!
  if(sqrt(x*x+y*y) <= limit){
    count += 1
  }
}
print(count)