Added swap counter function object