Powershell Group By Count Sql Statement