Count number of files by filetype Leave a reply Using Powershell, we can count the number of files by filetype, using the following command: get-childitem -recurse | select -expandproperty extension | group | select name,count | sort count –desc