in reply to Counting Number of Arrays in an Array Reference

print $#$arrayRef + 1;