Count number of files in directory tree

Count the number of files in /tmp

[temp_count]
command=find /tmp -maxdepth 1 | wc -l
type=integer
result_pattern=(digit:+)
timeout=10