The most simple form of usage is to type a command in the shell, without
any arguments.

By default, it will count files recursively in current working directory and
all of its subdirectories, and will display a table showing the frequency for
each file extension (e.g.: .txt, .py, .html, .css) and the total number of
files found.

In this case, the file extensions in the table will be displayed in uppercase
(default). Any hidden files or folders will be ignored.

Example:

count-files

If you prefer alphabetically sorted results, you just need to add the
-alpha or --sort-alpha argument.

This utility can also be used to search for files that have a certain file
extension (using -fe or --file-extension) and, optionally, display a
short preview (-p or --preview) for text files. The size of the
preview text sample can optionally be customized by using the -ps or
--preview-size argument followed by an integer number specifying the
number of characters to present.

The list of file types for which preview is available can be viewed with
the -st or --supported-types argument.

By default, the result of a search by a certain file extension is a list of
the full paths of the files found. If you need information about the size of
the files, use the -fs or --file-sizes argument.