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