get size of object without length