Add explicit count to ListBase and use in ListBaseWithIndex to handle tests for sitemap/sitemapindex with resources as an iterator/generator