terminal count files in directory
snippet in c

linux count files in directory

user604

ls | wc -l

terminal count files in directory

user6738

ls | wc -l        or       ls <path> | wc -l