import sys

N, D = map(int, input().split())
cnt = 0
for s in sys.stdin.readlines():
    x, y = map(int, s.split())
    d = pow(x, 2) + pow(y, 2)
    cnt += (d <= pow(D, 2))
print(cnt) import sys sys N, D = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split D cnt = 0 cnt 0 for s in sys.stdin.readlines():
    x, y = map(int, s.split())
    d = pow(x, 2) + pow(y, 2)
    cnt += (d <= pow(D, 2)) s sys.stdin.readlines() sys.stdin.readlines sys.stdin sys stdin readlines x, y = map(int, s.split()) x map(int, s.split()) map int s.split() s.split s split y d = pow(x, 2) + pow(y, 2) d pow(x, 2) + pow(y, 2) pow(x, 2) pow x 2 pow(y, 2) pow y 2 cnt += (d <= pow(D, 2)) cnt d <= pow(D, 2) d pow(D, 2) pow D 2 print(cnt) print cnt d = pow(x, 2) + pow(y, 2) pow(x, 2) + pow(y, 2) d y = map(int, s.split()) map(int, s.split()) y cnt = 0 0 cnt x, y = map(int, s.split()) map(int, s.split()) x N, D = map(int, input().split()) map(int, input().split()) N D = map(int, input().split()) map(int, input().split()) D cnt += (d <= pow(D, 2)) d <= pow(D, 2) cnt
import sys

N, D = map(int, input().split())
cnt = 0
for s in sys.stdin.readlines():
    x, y = map(int, s.split())
    d = pow(x, 2) + pow(y, 2)
    cnt += (d <= pow(D, 2))
print(cnt)