Group-Object is a powerful command that allows you to group objects together based on similar values.
Measure-Object supports a number of simple mathematical operations, such as counting the number of objects, calculating an average, calculating a sum, and so on. It also allows characters, words, or lines to be counted in text fields.