N, D = map(int, input().split())
count = 0
for i in range(N):
    a, b = map(int, input().split())
    if (a*a + b*b) <= D*D:
        count += 1
print(count) N, D = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split D count = 0 count 0 for i in range(N):
    a, b = map(int, input().split())
    if (a*a + b*b) <= D*D:
        count += 1 i range(N) range N a, b = map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split b if (a*a + b*b) <= D*D:
        count += 1 (a*a + b*b) <= D*D a*a + b*b a*a a a b*b b b D*D D D count += 1 count 1 print(count) print count count = 0 0 count D = map(int, input().split()) map(int, input().split()) D b = map(int, input().split()) map(int, input().split()) b count += 1 1 count N, D = map(int, input().split()) map(int, input().split()) N a, b = map(int, input().split()) map(int, input().split()) a
N, D = map(int, input().split())
count = 0
for i in range(N):
    a, b = map(int, input().split())
    if (a*a + b*b) <= D*D:
        count += 1
print(count)
