n,d = map(int,input().split(" "))
ans = 0
for i in range(n):
    a,b = map(int,input().split(" "))
    if (a*a + b*b) <= d*d:
        ans += 1
print(ans) n,d = map(int,input().split(" ")) n map(int,input().split(" ")) map int input().split(" ") ().split () input split " " d ans = 0 ans 0 for i in range(n):
    a,b = map(int,input().split(" "))
    if (a*a + b*b) <= d*d:
        ans += 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:
        ans += 1 (a*a + b*b) <= d*d a*a + b*b a*a a a b*b b b d*d d d ans += 1 ans 1 print(ans) print ans d = map(int,input().split(" ")) map(int,input().split(" ")) d b = map(int,input().split(" ")) map(int,input().split(" ")) b a,b = map(int,input().split(" ")) map(int,input().split(" ")) a n,d = map(int,input().split(" ")) map(int,input().split(" ")) n ans = 0 0 ans ans += 1 1 ans
n,d = map(int,input().split(" "))
ans = 0
for i in range(n):
    a,b = map(int,input().split(" "))
    if (a*a + b*b) <= d*d:
        ans += 1
print(ans)