import numpy as np

def main(Z, D):
    lengthes = np.linalg.norm(Z, axis=1)
    ans = np.sum(lengthes<=D)
    return ans

if __name__ == '__main__':
    N, D = map(int, input().split())
    Z = np.zeros([N, 2])
    for i in range(N):
        X, Y = map(int, input().split())
        Z[i][0] = X
        Z[i][1] = Y
    #print(Z)
    ans = main(Z, D)
    print(ans)
 import numpy as np numpy def main(Z, D):
    lengthes = np.linalg.norm(Z, axis=1)
    ans = np.sum(lengthes<=D)
    return ans main lengthes = np.linalg.norm(Z, axis=1) lengthes np.linalg.norm(Z, axis=1) np.linalg.norm np.linalg np linalg norm Z axis=1 axis 1 ans = np.sum(lengthes<=D) ans np.sum(lengthes<=D) np.sum np sum lengthes<=D lengthes D return ans ans Z Z D D if __name__ == '__main__':
    N, D = map(int, input().split())
    Z = np.zeros([N, 2])
    for i in range(N):
        X, Y = map(int, input().split())
        Z[i][0] = X
        Z[i][1] = Y
    #print(Z)
    ans = main(Z, D)
    print(ans) __name__ == '__main__' __name__ '__main__' N, D = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split D Z = np.zeros([N, 2]) Z np.zeros([N, 2]) np.zeros np zeros [N, 2] N 2 for i in range(N):
        X, Y = map(int, input().split())
        Z[i][0] = X
        Z[i][1] = Y
    #print(Z)
     i range(N) range N X, Y = map(int, input().split()) X map(int, input().split()) map int input().split() ().split () input split Y Z[i][0] = X Z[i][0] [i] Z i 0 X Z[i][1] = Y Z[i][1] [i] Z i 1 Y ans = main(Z, D) ans main(Z, D) main Z D print(ans) print ans def main(Z, D):
    lengthes = np.linalg.norm(Z, axis=1)
    ans = np.sum(lengthes<=D)
    return ans def main(Z, D):
    lengthes = np.linalg.norm(Z, axis=1)
    ans = np.sum(lengthes<=D)
    return ans main X, Y = map(int, input().split()) map(int, input().split()) X ans = main(Z, D) main(Z, D) ans D = map(int, input().split()) map(int, input().split()) D Z = np.zeros([N, 2]) np.zeros([N, 2]) Z Y = map(int, input().split()) map(int, input().split()) Y N, D = map(int, input().split()) map(int, input().split()) N
import numpy as np

def main(Z, D):
    lengthes = np.linalg.norm(Z, axis=1)
    ans = np.sum(lengthes<=D)
    return ans

if __name__ == '__main__':
    N, D = map(int, input().split())
    Z = np.zeros([N, 2])
    for i in range(N):
        X, Y = map(int, input().split())
        Z[i][0] = X
        Z[i][1] = Y
    #print(Z)
    ans = main(Z, D)
    print(ans)

