Count files by extension using powershell

0 comments
I found this beautiful code somewhere on the internet by which we can get the count of all files as per their extensions. I mainly needed this code while migration of on-prim file services to the cloud. So, I thought to share it on my blog to spread it more.