PowerShell v6.1 preview 4 brings a Measure-Object enhancement.
Measure-Object has been around since PowerShell v1. It enables you to measure the properties of an object and easily perform a number of calculations.
PS> Get-ChildItem -File | Measure… Read the full text.