#!/Library/Frameworks/Python.framework/Versions/3.5/bin/python3
import math

n, d = map(int, input().split())
cnt = 0
for i in range(n):
    x, y = map(int, input().split())
    dis = math.sqrt(x ** 2 + y ** 2)
    if dis <= d:
        cnt += 1
print(cnt) import math math n, d = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split d cnt = 0 cnt 0 for i in range(n):
    x, y = map(int, input().split())
    dis = math.sqrt(x ** 2 + y ** 2)
    if dis <= d:
        cnt += 1 i range(n) range n x, y = map(int, input().split()) x map(int, input().split()) map int input().split() ().split () input split y dis = math.sqrt(x ** 2 + y ** 2) dis math.sqrt(x ** 2 + y ** 2) math.sqrt math sqrt x ** 2 + y ** 2 x ** 2 x 2 y ** 2 y 2 if dis <= d:
        cnt += 1 dis <= d dis d cnt += 1 cnt 1 print(cnt) print cnt d = map(int, input().split()) map(int, input().split()) d cnt += 1 1 cnt x, y = map(int, input().split()) map(int, input().split()) x dis = math.sqrt(x ** 2 + y ** 2) math.sqrt(x ** 2 + y ** 2) dis n, d = map(int, input().split()) map(int, input().split()) n cnt = 0 0 cnt y = map(int, input().split()) map(int, input().split()) y
#!/Library/Frameworks/Python.framework/Versions/3.5/bin/python3
import math

n, d = map(int, input().split())
cnt = 0
for i in range(n):
    x, y = map(int, input().split())
    dis = math.sqrt(x ** 2 + y ** 2)
    if dis <= d:
        cnt += 1
print(cnt)
