It likely is part of a script.... ( I am guessing here....)
It is a statement that finds the number of elements in an array....meaining
create a file test.sh and write in it :
It will give you '3'
then ,
delete the first line from the file and run it again.
it will give you '2'...
Have Fun
MM