Shell Scripting Tutorial-22: Count The Number of Command Line Arguments Using $#
86.8K views on YouTube
In this tutorial you’ll learn to find the number of positional parameters set either through the ‘set’ command or through the command line arguments, using system variable $#.