PowerTip: Get the Number of Items in a Hash Table
Summary: Learn how to get the number of items in a Windows PowerShell hash table. How can I find the number of key/value pairs that a Windows PowerShell hash table contains? Use the Count property: PS C:\> $hash = @{'a' = 1; 'b' = 2; 'c' = 3; 'd' = 4} PS C:\> $hash Name &nb...