import sys

n = int(eval(input()))

xl = []

for _ in range(n):

    x, l = list(map(int, input().split()))

    xl.append((x, l))

xl.sort(key=lambda x:x[0])

i = 0

if n==1:

    print((1))

    sys.exit(0)

while i<len(xl)-1:

    if xl[i][0]+xl[i][1] <= xl[i+1][0]-xl[i+1][1]:

        i += 1

    else:

        if xl[i][0]+xl[i][1] < xl[i+1][0]+xl[i+1][1]:

            del xl[i+1]

        else:

            del xl[i]

print((len(xl)))
import sys

n = int(eval(input()))

xl = []

for _ in range(n):

    x, l = list(map(int, input().split()))

    xl.append((x, l))

xl.sort(key=lambda x:x[0])

if n==1:

    print((1))

    sys.exit(0)

i=0

j=1

ans=n

while j<len(xl):

    if xl[i][0]+xl[i][1] <= xl[j][0]-xl[j][1]:

        i = j

        j = i+1

    else:

        ans -= 1

        if xl[i][0]+xl[i][1] < xl[j][0]+xl[j][1]:

            j += 1

        else:

            i = j

            j = i+1

print(ans)

import sys

n = int(eval(input()))
xl = []
for _ in range(n):
    x, l = list(map(int, input().split()))
    xl.append((x, l))
xl.sort(key=lambda x: x[0])
i = 0
if n == 1:
    print((1))
    sys.exit(0)
while i < len(xl) - 1:
    if xl[i][0] + xl[i][1] <= xl[i + 1][0] - xl[i + 1][1]:
        i += 1
    else:
        if xl[i][0] + xl[i][1] < xl[i + 1][0] + xl[i + 1][1]:
            del xl[i + 1]
        else:
            del xl[i]
print((len(xl)))

import sys

n = int(eval(input()))
xl = []
for _ in range(n):
    x, l = list(map(int, input().split()))
    xl.append((x, l))
xl.sort(key=lambda x: x[0])
if n == 1:
    print((1))
    sys.exit(0)
i = 0
j = 1
ans = n
while j < len(xl):
    if xl[i][0] + xl[i][1] <= xl[j][0] - xl[j][1]:
        i = j
        j = i + 1
    else:
        ans -= 1
        if xl[i][0] + xl[i][1] < xl[j][0] + xl[j][1]:
            j += 1
        else:
            i = j
            j = i + 1
print(ans)

-i = 0 -while i < len(xl) - 1: -    if xl[i][0] + xl[i][1] <= xl[i + 1][0] - xl[i + 1][1]: -        i += 1 +i = 0 +j = 1 +ans = n +while j < len(xl): +    if xl[i][0] + xl[i][1] <= xl[j][0] - xl[j][1]: +        i = j +        j = i + 1 -        if xl[i][0] + xl[i][1] < xl[i + 1][0] + xl[i + 1][1]: -            del xl[i + 1] +        ans -= 1 +        if xl[i][0] + xl[i][1] < xl[j][0] + xl[j][1]: +            j += 1 -            del xl[i] -print((len(xl))) +            i = j +            j = i + 1 +print(ans)