new class: Counter
make two connection classes implement from Counter