n, d = map(int, input().split())
x = [list(map(int,input().split())) for i in range(n)]

ans = 0
for i,j in x:
    if (i**2)+(j**2) <= 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 i in range(n) for i in range(n) i range(n) range n for i in range(n) list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split x = [list(map(int,input().split())) for i in range(n)] x [list(map(int,input().split())) for i in range(n)] ans = 0 ans 0 for i,j in x:
    if (i**2)+(j**2) <= d**2:
        ans += 1 i j x if (i**2)+(j**2) <= d**2:
        ans += 1 (i**2)+(j**2) <= d**2 (i**2)+(j**2) i**2 i 2 j**2 j 2 d**2 d 2 ans += 1 ans 1 print(ans) print ans ans += 1 1 ans x = [list(map(int,input().split())) for i in range(n)] [list(map(int,input().split())) for i in range(n)] x n, d = map(int, input().split()) map(int, input().split()) n d = map(int, input().split()) map(int, input().split()) d ans = 0 0 ans
n, d = map(int, input().split())
x = [list(map(int,input().split())) for i in range(n)]

ans = 0
for i,j in x:
    if (i**2)+(j**2) <= d**2:
        ans += 1

print(ans)