import 'dart:convert';
import 'dart:io';
import 'dart:async';
import "dart:math";

Future main() async {
  List nd = stdin.readLineSync().split(" ").map((x) => int.parse(x)).toList();
  var xyLines =
      stdin.transform(utf8.decoder).transform(LineSplitter()); // ここ大事（複数行入力）
  List<int> xy = [];
  int count;
  count = 0;
  int lineNum;
  lineNum = 1;
  await for (var line in xyLines) {
    lineNum = lineNum + 1;
    if (lineNum > nd[0]) break;
    xy = line.split(" ").map((x) => int.parse(x)).toList();
    double dist = sqrt(pow(xy[0], 2) + pow(xy[1], 2));
    if (dist <= nd[1]) {
      count++;
    }
  }
  print(count);
}