How do I get the total items in an array, NOT the last id?
None of two ways I found to do this works:
my @a; # Add some elements (no consecutive ids) $a[
print scalar grep { defined $_ } @a;