Cpp emulators for counter structure: succeed in compilation