Bash Script Using A Counter And A For Loop