how to count the number of arguments passed in shell script code example Example: bash count number of arguments The number of arguments is $#