[SP] add a class to counter the objects during lifetime.