s = input().split()
N = int(s[0])
D = int(s[1])

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

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

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

print(count)