$io.getFileCount

Returns the total count of files that contains the given directory and his subdirectories.
Syntax
    $io{getFileCount}{dir}
    $io.getFileCount{dir}
Documentation
    Returns the total count of files that contains the given directory and his subdirectories:
      dir, the directory from where you will get the total count of files.
Examples
    $io.getFileCount{public://}
    Result:
    Returns the total count of files that contains the public www directory and his subdirectories.
GroupSpecial
Minimum required transaction-mode:NONE
Required scripting permission of the developerPERMISSION_FL_BASIC
Minimum parameters1
Maximum parameters 1