n, d = map(int, input().split())
cnt = 0

for i in range(n):
    Z = list(map(int, input().split()))
    X = Z[0]
    Y = Z[1]

    if X**2 + Y**2 <= d**2:
        cnt += 1
print(cnt) n, d = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split d cnt = 0 cnt 0 for i in range(n):
    Z = list(map(int, input().split()))
    X = Z[0]
    Y = Z[1]

    if X**2 + Y**2 <= d**2:
        cnt += 1 i range(n) range n Z = list(map(int, input().split())) Z list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split X = Z[0] X Z[0] Z 0 Y = Z[1] Y Z[1] Z 1 if X**2 + Y**2 <= d**2:
        cnt += 1 X**2 + Y**2 <= d**2 X**2 + Y**2 X**2 X 2 Y**2 Y 2 d**2 d 2 cnt += 1 cnt 1 print(cnt) print cnt n, d = map(int, input().split()) map(int, input().split()) n Z = list(map(int, input().split())) list(map(int, input().split())) Z Y = Z[1] Z[1] Y d = map(int, input().split()) map(int, input().split()) d cnt = 0 0 cnt X = Z[0] Z[0] X cnt += 1 1 cnt
n, d = map(int, input().split())
cnt = 0

for i in range(n):
    Z = list(map(int, input().split()))
    X = Z[0]
    Y = Z[1]

    if X**2 + Y**2 <= d**2:
        cnt += 1
print(cnt)
