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