Moving counter in a dedicated class with template methods acquire/release