Use the 'count' attribute to calculate the upper bound of an array.