New V3 Language Features
https://devblogs.microsoft.com/powershell/new-v3-language-features/

You can now use Count or Length on any object, even if it didn’t have the property.
If the object didn’t have a Count or Length property, it will will return 1 (or 0 for $null).
Objects that have Count or Length properties will continue to work as they always have.

PS> $a = 42
PS> $a.Count
1