ENH: use super optimized count_boolean_trues in indexing subfunction

speeds up e.g. a[..., boolmask]
Merge pull request #4557 from juliantaylor/index-nonzero

ENH: use super optimized count_boolean_trues in indexing subfunction