So I have to create a script that does something like this: ./scriptname.sh 1 2 4 carrot apple1. 12. 23. 44. carrot5. appleShow them in a counter no matter how many arguments I give it.I've tried doing this, but it doesn't work:#!/bin/bashk=0;while [$k -lt $#]do    k=$((k+1))doneecho $kexit 0
Bash scripting Show arguments and create a counter for them
bash