Provides a tool to count files and folders in a directory, supporting both recursive and non-recursive counts.