“Eclecticism, (from Greek eklektikos, “selective”), in philosophy and theology, the practice of selecting doctrines from different systems of thought without adopting the whole parent system for each doctrine.” – Encyclopaedia Britannica.
Number of files? Not as such. The FILE item will monitor a directory for any changes.
A DIRECTORY item sounds feasible. It might return several values such as the current number of files, current number of sub-directories, date/time of last change, anything else we can dream up. Perhaps a wild card option to return the number of files that match.
Save that as .ps1 file. In task scheduler set it to run powershell.exe with the parameter -file “script.Ps1” and with the schedule you want.
Now in your DesktopInfo ini file use any of the methods to read a txt file.