import Foundation

func readInt() -> [Int]{
    return readLine()!.split(separator:" ").map{Int($0)!}
}
let nd = readInt()
var c = 0
for i in 1...nd[0]{
  let xy = readInt()
  if(xy[0] * xy[0] + xy[1] * xy[1] <= nd[1] * nd[1]){
    c += 1
  }
}
print(c)