func main() {
    let nd = readLine()!.split(separator: " ").map{Int($0)!}
    var xyList = [[Int]]()
    for _ in 0...nd[0]-1 {
        xyList.append(readLine()!.split(separator: " ").map{Int($0)!})
    }
    print(xyList.filter{$0[0]*$0[0]+$0[1]*$0[1] <= nd[1]*nd[1]}.count)
}

main()


