// For Windows dir -Recurse *.* | Get-Content | Measure-Object -Line ^ Extension of the files to consider.