Php Count Multidimensional Array Powershell