Robotics people...common sense...rules? Wow, those are three contradicting things in just one sentence
It'll be kind of hard to measure from where the boxes start, but then again with the rounding down rule, 99.9% of the time, it's going to be the number of boxes since it's hard to have 3 boxes lined up on top of each other on its side.