(Call numberOfItems just once.)