Revert "Functions to get size or length"

This reverts commit 82d1b1c8e6f750a144c0c298bcd9749781f65baf.