Bash Script Using A Counter And Its Types