add get_size function to obtain the container size