# Counting and Grouping: Measure-Object and Group-Object

Measure-Object counts the objects a pipeline hands it and adds up, averages or finds the largest of one property, such as the total size of every file, and Group-Object sorts objects into piles by a property, such as one pile per file type, each with a count.

![Cheat sheet for the lesson Counting and Grouping: Measure-Object and Group-Object: Measure-Object counts the objects a pipeline hands it and adds up, averages or finds the largest of one property, such as the total size of every file, and Group-Object sorts objects into piles by a property, such…](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/60659b3d0c3c4684b574187ecc2902bf.webp)

- Category: PowerShell
- Level: Apprentice
- Tags: byte, group-object, measure-object, operating-system, powershell
- Updated: November 10, 2026

Source: https://www.ask-codey.com/cheat-sheets/powershell-measure-and-group-cheat-sheet
