import math
def main():
    n,d = map(int,input().split())
    ans = 0
    for i in range(n):
        x,y = map(int,input().split())
        if math.sqrt(x**2+y**2)<=d:
            ans += 1
    print(ans)
main() import math math def main():
    n,d = map(int,input().split())
    ans = 0
    for i in range(n):
        x,y = map(int,input().split())
        if math.sqrt(x**2+y**2)<=d:
            ans += 1
    print(ans) main 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):
        x,y = map(int,input().split())
        if math.sqrt(x**2+y**2)<=d:
            ans += 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 if math.sqrt(x**2+y**2)<=d:
            ans += 1
     math.sqrt(x**2+y**2)<=d math.sqrt(x**2+y**2) math.sqrt math sqrt x**2+y**2 x**2 x 2 y**2 y 2 d ans += 1 ans 1 print(ans) print ans main() main def main():
    n,d = map(int,input().split())
    ans = 0
    for i in range(n):
        x,y = map(int,input().split())
        if math.sqrt(x**2+y**2)<=d:
            ans += 1
    print(ans) def main():
    n,d = map(int,input().split())
    ans = 0
    for i in range(n):
        x,y = map(int,input().split())
        if math.sqrt(x**2+y**2)<=d:
            ans += 1
    print(ans) main
import math
def main():
    n,d = map(int,input().split())
    ans = 0
    for i in range(n):
        x,y = map(int,input().split())
        if math.sqrt(x**2+y**2)<=d:
            ans += 1
    print(ans)
main()