#a問題
# x=int(input())
#
# if x>=30:
#     print("Yes")
# else:
#     print("No")

#b問題
n,d = (int(y) for y in input().split())
x=[]
count=0
for i in range(n):
    n, m = (int(y) for y in input().split())
    s=n**2+m**2
    # print(s)
    if s<=(d**2):
        count+=1
print(count)
 int(y) for y in input().split() for y in input().split() y input().split() ().split () input split for y in input().split() int(y) int y n,d = (int(y) for y in input().split()) n (int(y) for y in input().split()) d x=[] x [] count=0 count 0 for i in range(n):
    n, m = (int(y) for y in input().split())
    s=n**2+m**2
    # print(s)
    if s<=(d**2):
        count+=1 i range(n) range n int(y) for y in input().split() for y in input().split() y input().split() ().split () input split for y in input().split() int(y) int y n, m = (int(y) for y in input().split()) n (int(y) for y in input().split()) m s=n**2+m**2 s n**2+m**2 n**2 n 2 m**2 m 2 if s<=(d**2):
        count+=1 s<=(d**2) s d**2 d 2 count+=1 count 1 print(count) print count count=0 0 count m = (int(y) for y in input().split()) (int(y) for y in input().split()) m count+=1 1 count s=n**2+m**2 n**2+m**2 s x=[] [] x n, m = (int(y) for y in input().split()) (int(y) for y in input().split()) n n,d = (int(y) for y in input().split()) (int(y) for y in input().split()) n d = (int(y) for y in input().split()) (int(y) for y in input().split()) d
#a問題
# x=int(input())
#
# if x>=30:
#     print("Yes")
# else:
#     print("No")

#b問題
n,d = (int(y) for y in input().split())
x=[]
count=0
for i in range(n):
    n, m = (int(y) for y in input().split())
    s=n**2+m**2
    # print(s)
    if s<=(d**2):
        count+=1
print(count)

