Use directory name in script to avoid if conditions.
Change directory name in count.sh.