The counts the versions of all the items in a SharePoint list via powershell.
$web = Get-SPWeb https://xxxx
$list = $web.Lists["109 Projects"]
$Total = 0
foreach($item in $list.Items)
{
$cnt = $item.Versions.Count
if($cnt -ge 100){
write-host "$item.Name Versions: $cnt"
}
$Total += $cnt
}
write-host $Total