since a bag is not a real array, `size` is a better term than `length`