Added docstrings for size computations.