kk = list(map(int, input().split()))
A, B = kk
answer = []

for p in range(A):
  pp = list(map(int, input().split()))
  C, D = pp
  leng = C*C + D*D
  if leng > B*B:
    answer.append(0)
  else:
    answer.append(1)
    
print(sum(answer)) kk = list(map(int, input().split())) kk list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split A, B = kk A kk B answer = [] answer [] for p in range(A):
  pp = list(map(int, input().split()))
  C, D = pp
  leng = C*C + D*D
  if leng > B*B:
    answer.append(0)
  else:
    answer.append(1)
     p range(A) range A pp = list(map(int, input().split())) pp list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split C, D = pp C pp D leng = C*C + D*D leng C*C + D*D C*C C C D*D D D if leng > B*B:
    answer.append(0)
  else:
    answer.append(1)
     leng > B*B leng B*B B B answer.append(0) answer.append answer append 0 answer.append(1) answer.append answer append 1 print(sum(answer)) print sum(answer) sum answer kk = list(map(int, input().split())) list(map(int, input().split())) kk B = kk kk B answer = [] [] answer A, B = kk kk A pp = list(map(int, input().split())) list(map(int, input().split())) pp leng = C*C + D*D C*C + D*D leng C, D = pp pp C D = pp pp D
kk = list(map(int, input().split()))
A, B = kk
answer = []

for p in range(A):
  pp = list(map(int, input().split()))
  C, D = pp
  leng = C*C + D*D
  if leng > B*B:
    answer.append(0)
  else:
    answer.append(1)
    
print(sum(answer))