updated ad counter example