adds sum-of-cubes counter sol