add loop counter to available_cmds.sh

I did it this way because I didn't know if bash had easy incrementing
of integers like C does.