import 'dart:convert';
import 'dart:io';

void main() async {
  List<int> NnD =
      stdin.readLineSync().split(" ").map((x) => int.parse(x)).toList();
  var lines = stdin.transform(utf8.decoder).transform(LineSplitter());
  int N = NnD[0];
  int D = NnD[1];
  int D2 = D * D;
  int count = 0;

  await for (var line in lines) {
    List<int> XnY =
    line.split(" ").map((x) => int.parse(x)).toList();
    int X = XnY[0];
    int Y = XnY[1];
    if (X * X + Y * Y <= D2) {
      count += 1;
    }
  }
  print(count);
}
