Hier ist der Code:
$site = new-object
Microsoft.SharePoint.SPSite("portal.domain.com/sites/SiteCollectionName")
$allCount = 0
$sitelists = foreach ($web in $site.AllWebs) { foreach
($list in $web.lists) {$allCount = $allCount + $list.ItemCount}}