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