n,d=map(int,input().split());print(sum([d**2>=a**2+b**2 for a,b in [list(map(int,input().split())) for _ in range(n)]])) d**2>=a**2+b**2 for a,b in [list(map(int,input().split())) for _ in range(n)] for a,b in [list(map(int,input().split())) for _ in range(n)] a b [list(map(int,input().split())) for _ in range(n)] for a,b in [list(map(int,input().split())) for _ in range(n)] d**2>=a**2+b**2 d**2 d 2 a**2+b**2 a**2 a 2 b**2 b 2 n,d=map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split d print(sum([d**2>=a**2+b**2 for a,b in [list(map(int,input().split())) for _ in range(n)]])) print sum([d**2>=a**2+b**2 for a,b in [list(map(int,input().split())) for _ in range(n)]]) sum [d**2>=a**2+b**2 for a,b in [list(map(int,input().split())) for _ in range(n)]] n,d=map(int,input().split()) map(int,input().split()) n d=map(int,input().split()) map(int,input().split()) d
n,d=map(int,input().split());print(sum([d**2>=a**2+b**2 for a,b in [list(map(int,input().split())) for _ in range(n)]]))