Add size and capacity functions