Fixed classic typo: instance field connectionCounter must be used, not constructor argument.