Computer >> Computer tutorials >  >> System >> windows

How to count the number of items in a folder on Windows 11/10

Here is a simple trick that will show you how to count the number of items in a folder on Windows 11/10. You can do it via File Explorer or by using PowerShell.

How to count the number of items in a folder

1] Via Explorer

How to count the number of items in a folder on Windows 11/10

To see how many items are there in the Recycle Bin:

  1. Open the concerned Folder
  2. Select one item
  3. Press Ctrl+A
  4. Look in the bottom left corner.
  5. You will see the number there.

2] Using PowerShell

How to count the number of items in a folder on Windows 11/10

Run PowerShell as an administrator, using the Taskbar search, type the following and hit Enter:

Write-Host (dir <folder-path> | measure).Count;

Here replace <folder-path> with the actual path. For example:

Write-Host (dir D:\Wallpapers | measure).Count;

The number will be displayed.

Now, some of you might want to take a look at this Windows File Explorer Tips and Tricks post.

How to count the number of items in a folder on Windows 11/10