Bash Script Using A Counter Loop