in reply to Re^3: Length of multidimensional array based on the particular index value
in thread Length of multidimensional array based on the particular index value

or even

$length += !!$_->[2] for @select;

:)

(the !! is only required if you don't want to make assumptions that a "true" value in $_->[2] is always represented as 1)