Add function that computes size, considering padding.

Closes #57 and #48.