Measure with Cubes

Pick an object. Add cubes one at a time from the left end until you reach the other end. Then count.

How to line up