bash count number of arguments

C++
The number of arguments is $#
Source

Also in C++: