I have seen a lot of answers about this subject but I don\'t want to do this using find. I have written this but something not working:
find
function Cou
To count the number of executable (like the title says)
count=0 for file in yourdir/*; do if [ -x $file ]; then count=$((count+1)); fi; done; echo "total ${count}"
To count folders, just change the -x test with -d
-x
-d