number(x,f) -- the number of elements e of the list x for which f(e) is true.
See also:
Code:
-- ../../../Macaulay2/m2/lists.m2:38 number = x -> # select x