I have some understanding that to check the number of arguments being passed into the shell script all I have to do inside the shell script is this: Example 1
if [ "$#" -ne 2 ]; then do something; fi
However, I am a little confused and would like to know whether the name of the shell script when being run is considered part of the arguments as well as this is the case for python script when it comes to
An example in the terminal would be like: Example 2
./script.sh $1 $2
In this case for Example 2 how many arguments would actually be considered to be passed in to Example 1 if else loop.