n,d = map(int, input().split())
z = [list(map(int, input().split())) for _ in range(n)]
ans = 0

for i in z:
    distance = i[0]*i[0] + i[1]*i[1]
    if distance <= d**2:
        ans += 1

print(ans) n,d = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split d list(map(int, input().split())) for _ in range(n) for _ in range(n) _ range(n) range n for _ in range(n) list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split z = [list(map(int, input().split())) for _ in range(n)] z [list(map(int, input().split())) for _ in range(n)] ans = 0 ans 0 for i in z:
    distance = i[0]*i[0] + i[1]*i[1]
    if distance <= d**2:
        ans += 1 i z distance = i[0]*i[0] + i[1]*i[1] distance i[0]*i[0] + i[1]*i[1] i[0]*i[0] i[0] i 0 i[0] i 0 i[1]*i[1] i[1] i 1 i[1] i 1 if distance <= d**2:
        ans += 1 distance <= d**2 distance d**2 d 2 ans += 1 ans 1 print(ans) print ans ans += 1 1 ans d = map(int, input().split()) map(int, input().split()) d ans = 0 0 ans distance = i[0]*i[0] + i[1]*i[1] i[0]*i[0] + i[1]*i[1] distance n,d = map(int, input().split()) map(int, input().split()) n z = [list(map(int, input().split())) for _ in range(n)] [list(map(int, input().split())) for _ in range(n)] z
n,d = map(int, input().split())
z = [list(map(int, input().split())) for _ in range(n)]
ans = 0

for i in z:
    distance = i[0]*i[0] + i[1]*i[1]
    if distance <= d**2:
        ans += 1

print(ans)
