N, D = map(int, input().split())
cnt = 0

for i in range(N):
    Z = input()
    Z = Z.split()
    X = int(Z[0])
    Y = int(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 = input()
    Z = Z.split()
    X = int(Z[0])
    Y = int(Z[1])
    if X**2 + Y**2 <= D**2:
        cnt += 1 i range(N) range N Z = input() Z input() input Z = Z.split() Z Z.split() Z.split Z split X = int(Z[0]) X int(Z[0]) int Z[0] Z 0 Y = int(Z[1]) Y int(Z[1]) int 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 D = map(int, input().split()) map(int, input().split()) D X = int(Z[0]) int(Z[0]) X cnt += 1 1 cnt Z = input() input() Z Y = int(Z[1]) int(Z[1]) Y Z = Z.split() Z.split() Z cnt = 0 0 cnt N, D = map(int, input().split()) map(int, input().split()) N
N, D = map(int, input().split())
cnt = 0

for i in range(N):
    Z = input()
    Z = Z.split()
    X = int(Z[0])
    Y = int(Z[1])
    if X**2 + Y**2 <= D**2:
        cnt += 1
print(cnt)
