I feel like the numpy version is most concise, most readable, and most array-ish:
np.sum(age>17)
(Assumes age is a np.array)
np.sum(age>17)
(Assumes age is a np.array)
OP here; maybe I'll add a comment to the article to make the comparison between NumPy and APL for this expression. Thanks!