rt: Keep track of the number of elements in AAs.