Powershell Group By Count Sql Server