adding link counter