count the number of entries in list in terminal in ubuntu code example Example: terminal count files in directory ls | wc -l or ls <path> | wc -l