ans = 0
N,d = [int(i) for i in input().split(" ")]
for i in range(N):
  x,y = [int(i) for i in input().split(" ")]
  if x**2 + y**2 <= d**2:
    ans +=1
print(ans) ans = 0 ans 0 int(i) for i in input().split(" ") for i in input().split(" ") i input().split(" ") ().split () input split " " for i in input().split(" ") int(i) int i N,d = [int(i) for i in input().split(" ")] N [int(i) for i in input().split(" ")] d for i in range(N):
  x,y = [int(i) for i in input().split(" ")]
  if x**2 + y**2 <= d**2:
    ans +=1 i range(N) range N int(i) for i in input().split(" ") for i in input().split(" ") i input().split(" ") ().split () input split " " for i in input().split(" ") int(i) int i x,y = [int(i) for i in input().split(" ")] x [int(i) for i in input().split(" ")] y if x**2 + y**2 <= d**2:
    ans +=1 x**2 + y**2 <= d**2 x**2 + y**2 x**2 x 2 y**2 y 2 d**2 d 2 ans +=1 ans 1 print(ans) print ans ans +=1 1 ans x,y = [int(i) for i in input().split(" ")] [int(i) for i in input().split(" ")] x y = [int(i) for i in input().split(" ")] [int(i) for i in input().split(" ")] y ans = 0 0 ans N,d = [int(i) for i in input().split(" ")] [int(i) for i in input().split(" ")] N d = [int(i) for i in input().split(" ")] [int(i) for i in input().split(" ")] d
ans = 0
N,d = [int(i) for i in input().split(" ")]
for i in range(N):
  x,y = [int(i) for i in input().split(" ")]
  if x**2 + y**2 <= d**2:
    ans +=1
print(ans)