>>62006>>62012Does that fit your needs better?
#!/bin/bash
n_dirs="$(ls -F /home/smallverse/Scripts | grep '/$' | wc -l)"
n_files="$(ls -F /home/smallverse/Scripts | grep '*$' | wc -l)"
echo "Files: $n_files"
echo "Folders: $n_dirs"
echo "Total: $(($n_files + $n_dirs))"