import sys
N, D = map(int,input().split())
count = 0
for s in sys.stdin.readlines():
   X, Y = map(int, s.split())
   if X**2+Y**2 <= D**2:
      count += 1
print(count) import sys sys N, D = map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split D count = 0 count 0 for s in sys.stdin.readlines():
   X, Y = map(int, s.split())
   if X**2+Y**2 <= D**2:
      count += 1 s sys.stdin.readlines() sys.stdin.readlines sys.stdin sys stdin readlines X, Y = map(int, s.split()) X map(int, s.split()) map int s.split() s.split s split Y if X**2+Y**2 <= D**2:
      count += 1 X**2+Y**2 <= D**2 X**2+Y**2 X**2 X 2 Y**2 Y 2 D**2 D 2 count += 1 count 1 print(count) print count D = map(int,input().split()) map(int,input().split()) D Y = map(int, s.split()) map(int, s.split()) Y N, D = map(int,input().split()) map(int,input().split()) N count = 0 0 count count += 1 1 count X, Y = map(int, s.split()) map(int, s.split()) X
import sys
N, D = map(int,input().split())
count = 0
for s in sys.stdin.readlines():
   X, Y = map(int, s.split())
   if X**2+Y**2 <= D**2:
      count += 1
print(count)