import math

n, d = map(int, input().split(" "))

ans = 0
for i in range(n):
    x, y = map(int, input().split(" "))
    double = x ** 2 + y ** 2
    root = math.sqrt(double)
    if root <= d:
        ans += 1

print(ans) import math math 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(" "))
    double = x ** 2 + y ** 2
    root = math.sqrt(double)
    if root <= 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 double = x ** 2 + y ** 2 double x ** 2 + y ** 2 x ** 2 x 2 y ** 2 y 2 root = math.sqrt(double) root math.sqrt(double) math.sqrt math sqrt double if root <= d:
        ans += 1 root <= d root d ans += 1 ans 1 print(ans) print ans d = map(int, input().split(" ")) map(int, input().split(" ")) d root = math.sqrt(double) math.sqrt(double) root ans = 0 0 ans double = x ** 2 + y ** 2 x ** 2 + y ** 2 double y = map(int, input().split(" ")) map(int, input().split(" ")) y n, d = map(int, input().split(" ")) map(int, input().split(" ")) n x, y = map(int, input().split(" ")) map(int, input().split(" ")) x ans += 1 1 ans
import math

n, d = map(int, input().split(" "))

ans = 0
for i in range(n):
    x, y = map(int, input().split(" "))
    double = x ** 2 + y ** 2
    root = math.sqrt(double)
    if root <= d:
        ans += 1

print(ans)
