Let's say I have multiple non-numerical arrays in PowerShell:
$a = (a, b, c, d) # $a.count equals 4 items
$b = (e, f, g, h, i, j) # $b.count equals 6 items, which is the highest count of items in one of the arrays
$c = (k, l, m, n, o) # $c.count equals 5 items
$d = (p, q) # $d.count equals 2 items
...
After declaring all those arrays, I would like to get the highest number of counts from all of them, which in the case above would be a count of 6 from array $b. Is there an easy way to achieve this, instead of comparing each array against the next one and check if the count is higher than before?
$b